diff options
author | Strangerke | 2012-11-11 15:15:59 +0100 |
---|---|---|
committer | Strangerke | 2012-11-11 15:15:59 +0100 |
commit | 9b9b761e710e9000e75b7565344b1bef86cd2a15 (patch) | |
tree | 18472c03a04245cf19695773ea1ebf2dda08d9ab | |
parent | 99cc57ff8dc34b082d00231e750cd7348d8fcb5e (diff) | |
download | scummvm-rg350-9b9b761e710e9000e75b7565344b1bef86cd2a15.tar.gz scummvm-rg350-9b9b761e710e9000e75b7565344b1bef86cd2a15.tar.bz2 scummvm-rg350-9b9b761e710e9000e75b7565344b1bef86cd2a15.zip |
HOPKINS: Little cleanup of previous commit
-rw-r--r-- | engines/hopkins/hopkins.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/hopkins/hopkins.cpp b/engines/hopkins/hopkins.cpp index 21bc2ac6b7..ec9f872755 100644 --- a/engines/hopkins/hopkins.cpp +++ b/engines/hopkins/hopkins.cpp @@ -1903,9 +1903,6 @@ void HopkinsEngine::AVION() { int HopkinsEngine::PWBASE() { warning("PWBASE()"); - int v0; // edi@1 - int result; // eax@30 - _globals.DESACTIVE_INVENT = true; _graphicsManager.LOAD_IMAGE("PBASE"); _graphicsManager.SETCOLOR3(252, 100, 100, 100); @@ -1914,7 +1911,7 @@ int HopkinsEngine::PWBASE() { _graphicsManager.SETCOLOR3(254, 0, 0, 0); _eventsManager.CHANGE_MOUSE(0); _graphicsManager.FADE_INW(); - v0 = 0; + bool loopCond = false; int zone; do { int mouseButton = _eventsManager.BMOUSE(); @@ -1951,10 +1948,12 @@ int HopkinsEngine::PWBASE() { } _eventsManager.VBL(); if ((mouseButton == 1) && zone) - v0 = 1; - } while (v0 != 1); + loopCond = true; + } while (!loopCond); _globals.DESACTIVE_INVENT = false; _graphicsManager.FADE_OUTW(); + + int result; switch (zone) { case 1: result = 94; |