Browse files

Map::UpdateScripts: don't run scripts for actors with avatarremoval set

true for at least bg2 and we'll use it internally in iwd2
  • Loading branch information...
1 parent 5584b0c commit 489ade973d120e3048ff4d2893e1c07794aa385b @lynxlynxlynx lynxlynxlynx committed Jun 10, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 gemrb/core/Map.cpp
View
6 gemrb/core/Map.cpp
@@ -725,6 +725,12 @@ void Map::UpdateScripts()
}
}
+ if (actor->GetStat(IE_AVATARREMOVAL)) {
+ actor->no_more_steps = true;
+ actor->ClearPath();
+ continue;
+ }
+
//FIXME: we need a better immobile hack, the actors used to retain their target
//and resume moving after the hold effect stopped
actor->no_more_steps = false;

0 comments on commit 489ade9

Please sign in to comment.