- fixed: Setting +NOCLIP for a player class did not work.

SVN r2371 (trunk)
This commit is contained in:
Christoph Oelckers 2010-06-13 10:44:06 +00:00
parent e2ce20a445
commit 6ff2abc53d
1 changed files with 1 additions and 1 deletions

View File

@ -2041,7 +2041,7 @@ void P_PlayerThink (player_t *player)
player->inventorytics--;
}
// No-clip cheat
if (player->cheats & CF_NOCLIP)
if (player->cheats & CF_NOCLIP || (player->mo->GetDefault()->flags & MF_NOCLIP))
{
player->mo->flags |= MF_NOCLIP;
}