mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-20 09:11:01 +00:00
Allow sprite roll to be set on mapthings.
This commit is contained in:
parent
c7dcb5fa83
commit
8d7b05a58f
3 changed files with 2 additions and 3 deletions
|
@ -175,7 +175,7 @@ typedef struct
|
|||
typedef struct
|
||||
{
|
||||
INT16 x, y;
|
||||
INT16 angle;
|
||||
INT16 angle, pitch, roll;
|
||||
UINT16 type;
|
||||
UINT16 options;
|
||||
INT16 z;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue