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:
parent
e76c8cf264
commit
b1b5de4297
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue