From e35e516c02e1072350149a152d928005e88bd76d Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 18 Apr 2019 17:24:51 +0000 Subject: [PATCH] Make editor no longer mask off sprite cstat bits when set from script git-svn-id: https://svn.eduke32.com/eduke32@7596 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/m32structures.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/duke3d/src/m32structures.cpp b/source/duke3d/src/m32structures.cpp index 8e01803b8..294bfc5f7 100644 --- a/source/duke3d/src/m32structures.cpp +++ b/source/duke3d/src/m32structures.cpp @@ -309,9 +309,7 @@ static int32_t __fastcall VM_AccessSprite(int32_t how, int32_t lVar1, int32_t la case SPRITE_X: sprite[i].x=lValue; break; case SPRITE_Y: sprite[i].y=lValue; break; case SPRITE_Z: sprite[i].z=lValue; break; - case SPRITE_CSTAT: - sprite[i].cstat = lValue&0xe3ff; - break; + case SPRITE_CSTAT: sprite[i].cstat = lValue; break; case SPRITE_PICNUM: sprite[i].picnum=lValue; break; case SPRITE_SHADE: sprite[i].shade=lValue; break; case SPRITE_PAL: sprite[i].pal=lValue; break; @@ -457,9 +455,7 @@ static int32_t __fastcall VM_AccessTsprite(int32_t how, int32_t lVar1, int32_t l case SPRITE_X: datspr->x=lValue; break; case SPRITE_Y: datspr->y=lValue; break; case SPRITE_Z: datspr->z=lValue; break; - case SPRITE_CSTAT: - datspr->cstat = lValue&0xe3ff; - break; + case SPRITE_CSTAT: datspr->cstat = lValue; break; case SPRITE_PICNUM: datspr->picnum=lValue; break; case SPRITE_SHADE: datspr->shade=lValue; break; case SPRITE_PAL: datspr->pal=lValue; break;