From eb800807849989fc44f85ec2113520e868c4f7a8 Mon Sep 17 00:00:00 2001 From: uruk Date: Sat, 24 May 2014 00:11:43 +0200 Subject: CGE2: Some refactoring and fixing regarding runCommand(). --- engines/cge2/snail.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'engines/cge2/snail.cpp') diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp index 052188c6e0..ad643ac724 100644 --- a/engines/cge2/snail.cpp +++ b/engines/cge2/snail.cpp @@ -90,15 +90,14 @@ void CommandHandler::runCommand() { // Delay is finished _timerExpiry = 0; - } else { - if (_textDelay) { - if (_vm->_talk) { - _vm->snKill((Sprite *)_vm->_talk); - _vm->_talk = nullptr; - } - _textDelay = false; + } else if (_textDelay) { + if (_vm->_talk) { + _vm->snKill((Sprite *)_vm->_talk); + _vm->_talk = nullptr; } + _textDelay = false; } + if (_vm->_talk && tailCmd._commandType != kCmdPause) break; } -- cgit v1.2.3