From c6abd7401bfabdae6401ee48c429242ac2cec379 Mon Sep 17 00:00:00 2001 From: obligaron Date: Fri, 28 Jan 2022 20:06:15 +0100 Subject: [PATCH] Preview Frame: Disable for towncast --- Source/player.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/player.cpp b/Source/player.cpp index e148586e9..b47dfaeef 100644 --- a/Source/player.cpp +++ b/Source/player.cpp @@ -493,8 +493,6 @@ void StartRangeAttack(int pnum, Direction d, int cx, int cy) player_graphic GetPlayerGraphicForSpell(spell_id spellId) { - if (leveltype == DTYPE_TOWN) - return player_graphic::Stand; switch (spelldata[spellId].sType) { case STYPE_FIRE: return player_graphic::Fire; @@ -2268,7 +2266,7 @@ void Player::UpdatePreviewCelSprite(_cmd_id cmdId, Point point, uint16_t wParam1 } } - if (!graphic) + if (!graphic || (leveltype == DTYPE_TOWN && IsAnyOf(graphic, player_graphic::Fire, player_graphic::Lightning, player_graphic::Magic))) return; LoadPlrGFX(*this, *graphic);