disable standing animations when unit is incapacitated

This commit is contained in:
Jérémy Rosen 2008-06-15 09:46:11 +00:00
parent 89164599b1
commit cac47f3e83

View file

@ -1581,7 +1581,7 @@ void unit::set_standing(const gamemap::location& loc, bool with_bars)
for (unsigned int i = 0; i < 6; i++) {
disp->invalidate(arr[i]);
}
if (preferences::show_standing_animations()) {
if (preferences::show_standing_animations()&& !incapacitated()) {
start_animation(INT_MAX,loc,choose_animation(*disp,loc,"standing"),with_bars,true,"",0,STATE_STANDING);
} else {
start_animation(INT_MAX,loc,choose_animation(*disp,loc,"_disabled_"),with_bars,true,"",0,STATE_STANDING);