mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-13 06:13:18 +00:00
Place backwards Bumpers with the correct Thing angle
This commit is contained in:
parent
18b6b53722
commit
e8c221f691
1 changed files with 5 additions and 0 deletions
|
@ -1235,6 +1235,11 @@ void OP_NightsObjectplace(player_t *player)
|
||||||
|
|
||||||
mt->options = (newz << ZSHIFT) | newflags;
|
mt->options = (newz << ZSHIFT) | newflags;
|
||||||
|
|
||||||
|
// if NiGHTS is facing backwards, orient the Thing angle forwards so that the sprite angle
|
||||||
|
// displays correctly. Backwards movement via the Thing flags is unaffected.
|
||||||
|
if (vertangle < 90 || vertangle > 270)
|
||||||
|
mt->angle = (mt->angle + 180) % 360;
|
||||||
|
|
||||||
P_SpawnMapThing(mt);
|
P_SpawnMapThing(mt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue