Skip to content

Commit

Permalink
DREAMWEB: Misc cleanings in saveload.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tramboi committed Nov 21, 2011
1 parent 44a3522 commit 9141df3
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions engines/dreamweb/saveload.cpp
Expand Up @@ -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"
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit 9141df3

Please sign in to comment.