Browse Source

`Player#getGraphic`: Remove `MyPlayer` check

We always have `_pSpell` when this function is called.
pull/5117/head
Gleb Mazovetskiy 4 years ago committed by Anders Jenbo
parent
commit
2ca6a3e8eb
  1. 3
      Source/player.cpp

3
Source/player.cpp

@ -2056,8 +2056,6 @@ player_graphic Player::getGraphic() const
case PM_BLOCK: case PM_BLOCK:
return player_graphic::Block; return player_graphic::Block;
case PM_SPELL: case PM_SPELL:
// We don't have the spell data for other players.
if (this == MyPlayer) {
switch (spelldata[_pSpell].sType) { switch (spelldata[_pSpell].sType) {
case STYPE_FIRE: case STYPE_FIRE:
return player_graphic::Fire; return player_graphic::Fire;
@ -2066,7 +2064,6 @@ player_graphic Player::getGraphic() const
case STYPE_MAGIC: case STYPE_MAGIC:
return player_graphic::Magic; return player_graphic::Magic;
} }
}
return player_graphic::Fire; return player_graphic::Fire;
case PM_GOTHIT: case PM_GOTHIT:
return player_graphic::Hit; return player_graphic::Hit;

Loading…
Cancel
Save