From: Jaka K. <lyn...@us...> - 2011-01-08 22:33:16
|
gemrb: Infinity Engine emulator The branch master has been updated via 6c5dac13bb88da1679f9d39d8f82bbea070f2f35 (commit) Summary of changes: gemrb/core/Map.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) from fc47cb2eb9b32e9eb125ab3c5aea9aa940309a12 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://gemrb.git.sourceforge.net/git/gitweb.cgi?p=gemrb/gemrb;a=commitdiff;h=6c5dac13bb88da1679f9d39d8f82bbea070f2f35 commit 6c5dac13bb88da1679f9d39d8f82bbea070f2f35 Author: Jaka Kranjc <lyn...@us...> Date: Sat Jan 8 23:34:57 2011 +0100 scripts don't run for sleeping actors either (or some actions bail out when asleep manually) diff --git a/gemrb/core/Map.cpp b/gemrb/core/Map.cpp index 1bbba02..2259e91 100644 --- a/gemrb/core/Map.cpp +++ b/gemrb/core/Map.cpp @@ -657,7 +657,7 @@ void Map::UpdateScripts() //if the actor is immobile, don't run the scripts if (!game->StateOverrideFlag && !game->StateOverrideTime) { - if (actor->Immobile()) { + if (actor->Immobile() || actor->GetStat(IE_STATE_ID) & STATE_SLEEP) { actor->no_more_steps = true; continue; } ----------------------------------------------------------------------- This is an automated email from the git hooks/post-receive script. -- gemrb: Infinity Engine emulator |