Additional safeguard for bug #306

This is where a client in a multiplayer game hitting a wall fails an assert. Initialise obj->mtype.phys_info.flags in multi_reset_player_object() instead of adding flags. (Tested and still works OK without specifying PF_THRUST.)
This commit is contained in:
Chris Taylor 2017-01-16 15:39:10 +08:00
parent e76c8cf264
commit b1b5de4297

View file

@ -2415,7 +2415,7 @@ void multi_reset_player_object(const vobjptr_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;
else
objp->mtype.phys_info.flags &= ~(PF_TURNROLL | PF_LEVELLING | PF_WIGGLE);