HOPKINS: flatten a leftover serie of IFs

This commit is contained in:
Strangerke
2013-02-03 14:20:39 +01:00
parent 6a477576b9
commit 5be9c19ac7
+5 -6
View File
@@ -816,6 +816,8 @@ bool HopkinsEngine::runFull() {
_globals._exitId = 0;
_globals._exitId = 77;
for (;;) {
if (_globals._exitId == 300)
_globals._exitId = 0;
@@ -2694,12 +2696,9 @@ void HopkinsEngine::BTOCEAN() {
_objectsManager.setSpriteX(0, oldX);
OCEAN_HOME();
_eventsManager.VBL();
if (_eventsManager.getMouseButton() == 1) {
if (oldPosX == _eventsManager.getMouseX()) {
if (_eventsManager.getMouseY() == oldPosY)
break;
}
}
if (_eventsManager.getMouseButton() == 1 && oldPosX == _eventsManager.getMouseX() && _eventsManager.getMouseY() == oldPosY)
break;
if (oldX <= 236) {
if (!displAnim)
_objectsManager.SPACTION(_globals.PERSO, "18,17,16,15,14,13,12,11,10,9,-1,", 0, 0, 6, false);