Enable PF_USES_THRUST when reseting multiplayer flags

Commit b1b5de4 switched from enabling select physics flags to setting
those flags and clearing all others.  Unfortunately, flag PF_USES_THRUST
was omitted from the enabled list, so it was disabled on reset.  It is
required to let player ships move.

Reported-by: Sottises <https://github.com/dxx-rebirth/dxx-rebirth/issues/347>
Fixes: b1b5de4297 ("Additional safeguard for bug #306")
This commit is contained in:
Kp 2017-10-03 01:31:33 +00:00
parent d4e8a92932
commit c3434e61d3

View file

@ -2374,7 +2374,7 @@ void multi_reset_player_object(const vmobjptr_t objp)
objp->mtype.phys_info.mass = Player_ship->mass;
objp->mtype.phys_info.drag = Player_ship->drag;
if (objp->type == OBJ_PLAYER)
objp->mtype.phys_info.flags = PF_TURNROLL | PF_WIGGLE;
objp->mtype.phys_info.flags = PF_TURNROLL | PF_WIGGLE | PF_USES_THRUST;
else
objp->mtype.phys_info.flags &= ~(PF_TURNROLL | PF_LEVELLING | PF_WIGGLE);