From c7f003a1a9ee6a39f11589206f63f7502d2eb95d Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 19 Mar 2019 17:08:16 +0000 Subject: [PATCH] Remove a couple of blocks in A_MoveSpriteClipdist() from standalone builds and call setsprite() unconditionally before doing any movement git-svn-id: https://svn.eduke32.com/eduke32@7406 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/actors.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/duke3d/src/actors.cpp b/source/duke3d/src/actors.cpp index 40a66f641..fd5040380 100644 --- a/source/duke3d/src/actors.cpp +++ b/source/duke3d/src/actors.cpp @@ -425,6 +425,7 @@ int32_t A_MoveSpriteClipdist(int32_t spriteNum, vec3_t const * const change, uin // check to make sure the netcode didn't leave a deleted sprite in the sprite lists. Bassert(pSprite->sectnum < MAXSECTORS); +#ifndef EDUKE32_STANDALONE if (pSprite->statnum == STAT_MISC || (isEnemy && pSprite->xrepeat < 4)) { pSprite->x += change->x; @@ -436,6 +437,9 @@ int32_t A_MoveSpriteClipdist(int32_t spriteNum, vec3_t const * const change, uin return 0; } +#endif + + setsprite(spriteNum, (vec3_t *)pSprite); if (clipDist >= 0) { @@ -447,8 +451,10 @@ int32_t A_MoveSpriteClipdist(int32_t spriteNum, vec3_t const * const change, uin { if (pSprite->xrepeat > 60) clipDist = 1024; +#ifndef EDUKE32_STANDALONE else if (pSprite->picnum == LIZMAN) clipDist = 292; +#endif else if (A_CheckSpriteFlags(spriteNum, SFLAG_BADGUY)) clipDist = pSprite->clipdist<<2; else