diff options
author | Filippos Karapetis | 2011-12-07 23:05:41 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-07 23:05:41 +0200 |
commit | 6d7053dec941a499314750781e52fab927bca72b (patch) | |
tree | d67ff45e00fb213ce7c6dc25b8f42f63d31e5bd5 /engines/dreamweb/people.cpp | |
parent | d48bcc93625baf9ad68db12c23b31f8dc2ae6bbc (diff) | |
download | scummvm-rg350-6d7053dec941a499314750781e52fab927bca72b.tar.gz scummvm-rg350-6d7053dec941a499314750781e52fab927bca72b.tar.bz2 scummvm-rg350-6d7053dec941a499314750781e52fab927bca72b.zip |
DREAMWEB: Fixed regression in louisChair()
Diffstat (limited to 'engines/dreamweb/people.cpp')
-rw-r--r-- | engines/dreamweb/people.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/dreamweb/people.cpp b/engines/dreamweb/people.cpp index d68e03693c..7479c4c184 100644 --- a/engines/dreamweb/people.cpp +++ b/engines/dreamweb/people.cpp @@ -577,12 +577,16 @@ void DreamGenContext::louisChair(ReelRoutine &routine) { if (checkSpeed(routine)) { uint16 nextReelPointer = routine.reelPointer() + 1; - if (nextReelPointer == 191) + if (nextReelPointer == 191) { routine.setReelPointer(182); // Restart Louis - else if (nextReelPointer != 185) + } else if (nextReelPointer != 185) { routine.setReelPointer(nextReelPointer); - else if (engine->randomNumber() < 245) - routine.setReelPointer(182); // Restart Louis + } else { + if (engine->randomNumber() < 245) + routine.setReelPointer(182); // Restart Louis + else + routine.setReelPointer(nextReelPointer); + } } showGameReel(&routine); |