Place backwards Bumpers with the correct Thing angle

This commit is contained in:
mazmazz 2018-08-16 21:21:43 -04:00
parent 18b6b53722
commit e8c221f691
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}