mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Place backwards Bumpers with the correct Thing angle
This commit is contained in:
parent
5fdece424a
commit
6dd64bccbc
1 changed files with 5 additions and 0 deletions
|
|
@ -1235,6 +1235,11 @@ void OP_NightsObjectplace(player_t *player)
|
|||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue