From b4c52190e2fb0bb191591f4bf9b88ac536970be0 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 20 Oct 2024 19:11:46 +0200 Subject: [PATCH] rotsprite stuff also should be SHORT --- src/hardware/hw_main.c | 8 ++++---- src/r_things.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index c91d92063..e8f526bf8 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4873,10 +4873,10 @@ void HWR_ProjectSprite(mobj_t *thing) if (rotsprite != NULL) { - spr_width = rotsprite->width << FRACBITS; - spr_height = rotsprite->height << FRACBITS; - spr_offset = rotsprite->leftoffset << FRACBITS; - spr_topoffset = rotsprite->topoffset << FRACBITS; + spr_width = SHORT(rotsprite->width) << FRACBITS; + spr_height = SHORT(rotsprite->height) << FRACBITS; + spr_offset = SHORT(rotsprite->leftoffset) << FRACBITS; + spr_topoffset = SHORT(rotsprite->topoffset) << FRACBITS; spr_topoffset += FEETADJUST; // flip -> rotate, not rotate -> flip diff --git a/src/r_things.c b/src/r_things.c index 481cd1343..6249f6f68 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -1387,10 +1387,10 @@ static void R_ProjectSprite(mobj_t *thing) if (rotsprite != NULL) { - spr_width = rotsprite->width << FRACBITS; - spr_height = rotsprite->height << FRACBITS; - spr_offset = rotsprite->leftoffset << FRACBITS; - spr_topoffset = rotsprite->topoffset << FRACBITS; + spr_width = SHORT(rotsprite->width) << FRACBITS; + spr_height = SHORT(rotsprite->height) << FRACBITS; + spr_offset = SHORT(rotsprite->leftoffset) << FRACBITS; + spr_topoffset = SHORT(rotsprite->topoffset) << FRACBITS; spr_topoffset += FEETADJUST; // flip -> rotate, not rotate -> flip