From 55fa72d138d8349444907845ebeb9c70bde53143 Mon Sep 17 00:00:00 2001 From: obligaron Date: Sun, 16 May 2021 09:05:08 +0200 Subject: [PATCH] When changing items hot-swap the hero animation data and don't start a new animation --- Source/items.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/items.cpp b/Source/items.cpp index 784dc88ef..b9c909729 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -882,13 +882,8 @@ void CalcPlrItemVals(int playerId, bool Loadgfx) if (player._pgfxnum != g && Loadgfx) { player._pgfxnum = g; player._pGFXLoad = 0; - LoadPlrGFX(playerId, PFILE_STAND); + LoadPlrGFX(playerId, static_cast(PFILE_STAND | PFILE_WALK)); SetPlrAnims(player); - - direction d = player._pdir; - - assert(player._pNAnim[d]); - NewPlrAnim(player, player._pNAnim[d], player._pNFrames, 3, player._pNWidth); } else { player._pgfxnum = g; }