From e802ecf0b5ddf884dbf5a3f2a1b826a5c83bf4d6 Mon Sep 17 00:00:00 2001 From: Indev Date: Sat, 8 Mar 2025 18:14:19 +0300 Subject: [PATCH] Add SHORT here for consistency with other code --- src/w_wad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/w_wad.c b/src/w_wad.c index 5445e2969..82d71c814 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -1824,8 +1824,8 @@ void *W_CachePatchNameRotated(const char *name, INT32 rotationangle, INT32 tag) // >y pivot centered // >x pivot not centered // Why? - xpivot = ptr->width / 2; - ypivot = ptr->height / 2; + xpivot = SHORT(ptr->width) / 2; + ypivot = SHORT(ptr->height) / 2; RotatedPatch_DoRotation(rspr, ptr, rotationangle, xpivot, ypivot, false);