Add compile-time option to disable ship wiggling

Ship wiggle is normally enabled for compatibility with the original
game.  However, during development, it can become a nuisance, so add an
option to allow disabling it.
This commit is contained in:
Kp 2022-07-02 18:10:45 +00:00
parent e80c6fb05f
commit 192c5de4f1

View file

@ -847,7 +847,11 @@ void reset_player_object(object_base &ConsoleObject)
ConsoleObject.mtype.phys_info.turnroll = 0;
ConsoleObject.mtype.phys_info.mass = Player_ship->mass;
ConsoleObject.mtype.phys_info.drag = Player_ship->drag;
ConsoleObject.mtype.phys_info.flags = PF_TURNROLL | PF_LEVELLING | PF_WIGGLE | PF_USES_THRUST;
ConsoleObject.mtype.phys_info.flags =
#ifndef DXX_FEATURE_DISABLE_SHIP_WIGGLE
PF_WIGGLE |
#endif
PF_TURNROLL | PF_LEVELLING | PF_USES_THRUST;
//Init render info