- fixed: CF_FLY cannot be part of the player_t structure and be tracked properly. It needs to be part of the actor itself that has MF2_FLY set so it got moved to flags7.

- removed some fudging code that tried to work around the shortcomings of CF_FLY but was ultimately causing more problems than it solved.
This commit is contained in:
Christoph Oelckers 2015-02-10 23:40:53 +01:00
commit 337682934c
6 changed files with 8 additions and 14 deletions

View file

@ -1235,15 +1235,6 @@ void G_FinishTravel ()
pawn->AddToHash ();
pawn->SetState(pawn->SpawnState);
pawn->player->SendPitchLimits();
// Sync the FLY flags.
if (pawn->flags2 & MF2_FLY)
{
pawn->player->cheats |= CF_FLY;
}
else
{
pawn->player->cheats &= ~CF_FLY;
}
for (inv = pawn->Inventory; inv != NULL; inv = inv->Inventory)
{