Skip to content

Commit

Permalink
Client: Allow spawning objects with MF_LOCAL
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 17, 2011
1 parent 42aae91 commit 565b0da
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions doomsday/plugins/common/src/p_mapsetup.c
Expand Up @@ -559,8 +559,13 @@ static void P_LoadMapObjs(void)
// Check for things that clients don't spawn on their own.
if(IS_CLIENT)
{
if(!P_IsClientAllowedToSpawn(spot->doomEdNum))
continue;
// Client is allowed to spawn objects that are flagged local.
// The server will not send any information about them.
if(!(MOBJINFO[type].flags & MF_LOCAL))
{
if(!P_IsClientAllowedToSpawn(spot->doomEdNum))
continue;
}
}

// Find which type to spawn.
Expand Down

0 comments on commit 565b0da

Please sign in to comment.