mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-25 04:01:03 +00:00
TOON: Disable too many levels of recursion with click events
svn-id: r53119
This commit is contained in:
parent
7a7eabb139
commit
0d6d895478
@ -1121,7 +1121,8 @@ int32 ToonEngine::randRange(int32 minStart, int32 maxStart) {
|
||||
|
||||
int32 ToonEngine::runEventScript(int32 x, int32 y, int32 mode, int32 id, int32 scriptId) {
|
||||
|
||||
assert(_currentScriptRegion < 4);
|
||||
if (_currentScriptRegion >= 4)
|
||||
return 0;
|
||||
|
||||
EMCState *status = &_scriptState[_currentScriptRegion];
|
||||
_script->init(status, &_scriptData);
|
||||
@ -1228,6 +1229,7 @@ void ToonEngine::clickEvent() {
|
||||
commandId = 2 * (_gameState->_mouseState - 1) + 16;
|
||||
}
|
||||
|
||||
_drew->stopWalk();
|
||||
|
||||
int16 command = currentHot->getData(commandId);
|
||||
int16 argument = currentHot->getData(commandId + 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user