Skip to content

Commit

Permalink
no movement orbs for enemy statues
Browse files Browse the repository at this point in the history
Putting a movement orb on an enemy petrified unit is rather
redundant, so this commit prevents that behavior. Statues owned
by the viewing team will still have orbs, which seems acceptable.
  • Loading branch information
cbeck88 committed Jun 3, 2014
1 parent deeaaa7 commit 0f2777e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unit.cpp
Expand Up @@ -2055,7 +2055,7 @@ void unit::redraw_unit()
if(size_t(side()) != disp.viewing_team()+1) {
if(disp.team_valid() &&
disp.get_teams()[disp.viewing_team()].is_enemy(side())) {
if (preferences::show_enemy_orb())
if (preferences::show_enemy_orb() && !get_state(STATE_PETRIFIED))
orb_img = &enemy_orb;
else
orb_img = NULL;
Expand Down

0 comments on commit 0f2777e

Please sign in to comment.