From 65bb902be931a510181c50cc85402cb70359d4e7 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Fri, 2 Mar 2007 11:37:42 +0000 Subject: - Fixed the actor freeze issue in the garage in Bargon Attack - Some minor fixes svn-id: r25921 --- engines/gob/game_v2.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engines/gob/game_v2.cpp') diff --git a/engines/gob/game_v2.cpp b/engines/gob/game_v2.cpp index 01974a0ce3..11d3743320 100644 --- a/engines/gob/game_v2.cpp +++ b/engines/gob/game_v2.cpp @@ -1038,8 +1038,15 @@ void Game_v2::collisionsBlock(void) { WRITE_VAR(16, _activeCollResId & 0xFFF); if (collPtr->funcLeave != 0) { + int16 collResIdBak = _activeCollResId; + int16 collIndexBak = _activeCollIndex; + timeKey = _vm->_util->getTimeKey(); collSub(collPtr->funcLeave); + + _activeCollResId = collResIdBak; + _activeCollIndex = collIndexBak; + _vm->_inter->animPalette(); deltaTime = timeVal - (_vm->_util->getTimeKey() - timeKey); -- cgit v1.2.3