aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/ringworld2
diff options
context:
space:
mode:
authorPaul Gilbert2013-10-07 10:43:05 -0400
committerPaul Gilbert2013-10-07 10:43:05 -0400
commit7c9ab7e4a3e76f6dc4e3a120313ffd9d6d5554c4 (patch)
tree0a78764cba44e7d1f4cc6491744529708919a455 /engines/tsage/ringworld2
parent402b7a03716825f5381d65d594a1c8c82e13e877 (diff)
downloadscummvm-rg350-7c9ab7e4a3e76f6dc4e3a120313ffd9d6d5554c4.tar.gz
scummvm-rg350-7c9ab7e4a3e76f6dc4e3a120313ffd9d6d5554c4.tar.bz2
scummvm-rg350-7c9ab7e4a3e76f6dc4e3a120313ffd9d6d5554c4.zip
TSAGE: Disable R2R saving when video/cutscene playback is occurring
Diffstat (limited to 'engines/tsage/ringworld2')
-rw-r--r--engines/tsage/ringworld2/ringworld2_logic.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_logic.cpp b/engines/tsage/ringworld2/ringworld2_logic.cpp
index 597ddf3f87..1e9d6229e7 100644
--- a/engines/tsage/ringworld2/ringworld2_logic.cpp
+++ b/engines/tsage/ringworld2/ringworld2_logic.cpp
@@ -320,8 +320,9 @@ bool Ringworld2Game::canLoadGameStateCurrently() {
* Returns true if it is currently okay to save the game
*/
bool Ringworld2Game::canSaveGameStateCurrently() {
- // Don't allow a game to be saved if a dialog is active
- return g_globals->_gfxManagers.size() == 1;
+ // Don't allow a game to be saved if a dialog is active or if an animation
+ // is playing
+ return g_globals->_gfxManagers.size() == 1 && R2_GLOBALS._animationCtr == 0;
}
/*--------------------------------------------------------------------------*/
@@ -1788,7 +1789,9 @@ AnimationPlayer::~AnimationPlayer() {
void AnimationPlayer::synchronize(Serializer &s) {
EventHandler::synchronize(s);
- warning("TODO AnimationPlayer::synchronize");
+
+ // TODO: Implement saving for animation player state. Currently, I disable saving
+ // when an animation is active, so saving it's state would a "nice to have".
}
void AnimationPlayer::remove() {