diff options
author | Bertrand Augereau | 2011-11-21 17:56:49 +0100 |
---|---|---|
committer | Bertrand Augereau | 2011-11-21 17:56:49 +0100 |
commit | 9141df3bec3a40033416223d88d09a9835cd8b75 (patch) | |
tree | 910ee1b2f1bf8008f5571ad6d0c7cb172a153885 /engines/dreamweb | |
parent | 44a3522e4a91efa47f44e851bb1989042799ccca (diff) | |
download | scummvm-rg350-9141df3bec3a40033416223d88d09a9835cd8b75.tar.gz scummvm-rg350-9141df3bec3a40033416223d88d09a9835cd8b75.tar.bz2 scummvm-rg350-9141df3bec3a40033416223d88d09a9835cd8b75.zip |
DREAMWEB: Misc cleanings in saveload.cpp
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/saveload.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/engines/dreamweb/saveload.cpp b/engines/dreamweb/saveload.cpp index 6b54da963b..0fcd1b5181 100644 --- a/engines/dreamweb/saveload.cpp +++ b/engines/dreamweb/saveload.cpp @@ -31,8 +31,7 @@ namespace DreamGen { void DreamGenContext::loadgame() { if (data.byte(kCommandtype) != 246) { data.byte(kCommandtype) = 246; - al = 41; - commandonly(); + commandonly(41); } if (data.word(kMousebutton) == data.word(kOldbutton)) return; // "noload" @@ -62,8 +61,8 @@ void DreamGenContext::doload() { data.byte(kGetback) = 0; while (true) { - if (data.byte(kQuitrequested)) - return; // "quitloaded" + if (quitRequested()) + return; delpointer(); readmouse(); showpointer(); @@ -185,8 +184,7 @@ void DreamGenContext::savegame() { if (data.byte(kCommandtype) != 247) { data.byte(kCommandtype) = 247; - al = 44; - commandonly(); + commandonly(44); } if (data.word(kMousebutton) != 1) return; @@ -206,9 +204,8 @@ void DreamGenContext::savegame() { data.byte(kGetback) = 0; while (true) { - _cmp(data.byte(kQuitrequested), 0); - if (!flags.z()) - return /* (quitsavegame) */; + if (quitRequested()) + return; delpointer(); checkinput(); readmouse(); |