Allow sprite roll to be set on mapthings.

This commit is contained in:
Nev3r 2019-12-14 17:41:27 +01:00
parent c7dcb5fa83
commit 8d7b05a58f
3 changed files with 2 additions and 3 deletions

View file

@ -175,7 +175,7 @@ typedef struct
typedef struct
{
INT16 x, y;
INT16 angle;
INT16 angle, pitch, roll;
UINT16 type;
UINT16 options;
INT16 z;

View file

@ -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

View file

@ -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"))