disable standing animations when unit is incapacitated
This commit is contained in:
parent
89164599b1
commit
cac47f3e83
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue