From 8d7b05a58fec86f61a786140b7ed5144613dbf9c Mon Sep 17 00:00:00 2001 From: Nev3r Date: Sat, 14 Dec 2019 17:41:27 +0100 Subject: [PATCH] Allow sprite roll to be set on mapthings. --- src/doomdata.h | 2 +- src/p_mobj.c | 1 + src/p_setup.c | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/doomdata.h b/src/doomdata.h index 7d73ae231..d67831b3d 100644 --- a/src/doomdata.h +++ b/src/doomdata.h @@ -175,7 +175,7 @@ typedef struct typedef struct { INT16 x, y; - INT16 angle; + INT16 angle, pitch, roll; UINT16 type; UINT16 options; INT16 z; diff --git a/src/p_mobj.c b/src/p_mobj.c index e4d68ec8b..c9816f230 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -11899,6 +11899,7 @@ You should think about modifying the deathmatch starts to take full advantage of mobj = P_SpawnMobj(x, y, z, i); P_SetScale(mobj, mthing->scale); mobj->destscale = mthing->scale; + mobj->rollangle = FixedAngle(mthing->roll*FRACUNIT); mobj->spawnpoint = mthing; #ifdef HAVE_BLUA diff --git a/src/p_setup.c b/src/p_setup.c index 9c3ea762d..fa68d0cdc 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -1236,12 +1236,10 @@ static void TextmapThing(UINT32 i, char *param) mapthings[i].z = atol(M_GetToken(NULL)); else if (fastcmp(param, "angle")) mapthings[i].angle = atol(M_GetToken(NULL)); - #ifdef ADVUDMF else if (fastcmp(param, "pitch")) mapthings[i].pitch = atol(M_GetToken(NULL)); else if (fastcmp(param, "roll")) mapthings[i].roll = atol(M_GetToken(NULL)); - #endif else if (fastcmp(param, "type")) mapthings[i].type = atol(M_GetToken(NULL)); else if (fastcmp(param, "scale") || fastcmp(param, "scalex"))