[Scummvm-cvs-logs] scummvm master -> 94db56189b2c38c63ccb7dea07511e8c605bb8b8
bluegr
md5 at scummvm.org
Mon Sep 12 22:10:14 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
94db56189b CGE: Removed a leftover goto statement
Commit: 94db56189b2c38c63ccb7dea07511e8c605bb8b8
https://github.com/scummvm/scummvm/commit/94db56189b2c38c63ccb7dea07511e8c605bb8b8
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2011-09-12T13:05:08-07:00
Commit Message:
CGE: Removed a leftover goto statement
Changed paths:
engines/cge/snail.cpp
diff --git a/engines/cge/snail.cpp b/engines/cge/snail.cpp
index 3605ad9..f13a42f 100644
--- a/engines/cge/snail.cpp
+++ b/engines/cge/snail.cpp
@@ -978,8 +978,10 @@ void Snail::runCom() {
if (spr->seqTest(snc->_val) &&
(snc->_val >= 0 || spr != _hero || _hero->_tracePtr < 0)) {
_timerExpiry = g_system->getMillis() + spr->_time * kSnailFrameDelay;
- } else
- goto xit;
+ } else {
+ _busy = false;
+ return;
+ }
}
break;
case kSnLevel:
@@ -1171,8 +1173,6 @@ void Snail::runCom() {
if (!_turbo)
break;
}
-xit:
- _busy = false;
}
bool Snail::idle() {
More information about the Scummvm-git-logs
mailing list