From f0ae68f061468ddb12edc960146c4c96e09be3c2 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 12 May 2013 18:51:28 +0000 Subject: [PATCH] m32script: sync rotatesprite* with CON. git-svn-id: https://svn.eduke32.com/eduke32@3753 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/m32exec.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/m32exec.c b/polymer/eduke32/source/m32exec.c index bce6bad37..91e2ff334 100644 --- a/polymer/eduke32/source/m32exec.c +++ b/polymer/eduke32/source/m32exec.c @@ -2923,7 +2923,16 @@ dodefault: int32_t x1=Gv_GetVarX(*insptr++), y1=Gv_GetVarX(*insptr++); int32_t x2=Gv_GetVarX(*insptr++), y2=Gv_GetVarX(*insptr++); - if (tw != CON_ROTATESPRITE16 && !(orientation & 256)) {x<<=16; y<<=16;} + if (tw != CON_ROTATESPRITE16 && !(orientation&ROTATESPRITE_FULL16)) + { + x<<=16; + y<<=16; + } + + // NOTE: Unlike CON, no error on large x/y. + + orientation &= (ROTATESPRITE_MAX-1); + rotatesprite_(x,y,z,a,tilenum,shade,pal,2|orientation,alpha,x1,y1,x2,y2); continue; }