aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-09 13:07:14 -0400
committerPaul Gilbert2015-05-09 13:07:14 -0400
commit1ba94c93e98533f3bfc2970d6ae40356515b99b9 (patch)
treefd821d0b4b246204ed66e59719169e1bab2bd07e
parentd50fb7cb602e826cddf9ceb76608cba1a54d943b (diff)
downloadscummvm-rg350-1ba94c93e98533f3bfc2970d6ae40356515b99b9.tar.gz
scummvm-rg350-1ba94c93e98533f3bfc2970d6ae40356515b99b9.tar.bz2
scummvm-rg350-1ba94c93e98533f3bfc2970d6ae40356515b99b9.zip
SHERLOCK: Remove redundant shouldQuit call in loop
-rw-r--r--engines/sherlock/people.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/people.cpp b/engines/sherlock/people.cpp
index 8bf3c1e4c3..0eda40c03f 100644
--- a/engines/sherlock/people.cpp
+++ b/engines/sherlock/people.cpp
@@ -306,7 +306,7 @@ void People::setWalking() {
// If the player is already close to the given destination that no
// walking is needed, move to the next straight line segment in the
// overall walking route, if there is one
- do {
+ for (;;) {
// Since we want the player to be centered on the destination they
// clicked, but characters draw positions start at their left, move
// the destination half the character width to draw him centered
@@ -326,7 +326,7 @@ void People::setWalking() {
// Pop next walk segment off the walk route stack
_walkDest = _walkTo.pop();
- } while (!_vm->shouldQuit());
+ }
// If a sufficient move is being done, then start the move
if (delta.x > 3 || delta.y) {