diff --git a/doomsday/plugins/common/src/d_netcl.c b/doomsday/plugins/common/src/d_netcl.c index b603d101cd..59152e36e8 100644 --- a/doomsday/plugins/common/src/d_netcl.c +++ b/doomsday/plugins/common/src/d_netcl.c @@ -486,6 +486,15 @@ void NetCl_UpdatePlayerState(byte *data, int plrNum) ST_HUDUnHide(plrNum, HUE_ON_PICKUP_POWER); pl->powers[i] = val; + + // Should we reveal the map? + if(val && i == PT_ALLMAP && plrNum == CONSOLEPLAYER) + { +#ifdef _DEBUG + Con_Message("NetCl_UpdatePlayerState: Revealing automap.\n"); +#endif + AM_RevealMap(AM_MapForPlayer(plrNum), true); + } } } #endif diff --git a/doomsday/plugins/common/src/d_netsv.c b/doomsday/plugins/common/src/d_netsv.c index 35e1c06a58..d07d06fe6c 100644 --- a/doomsday/plugins/common/src/d_netsv.c +++ b/doomsday/plugins/common/src/d_netsv.c @@ -1076,8 +1076,7 @@ void NetSv_SendPlayerState(int srcPlrNum, int destPlrNum, int flags, int i, k; if(IS_CLIENT || !pl->plr->inGame || - (destPlrNum >= 0 && destPlrNum < MAXPLAYERS && - !players[destPlrNum].plr->inGame)) + (destPlrNum >= 0 && destPlrNum < MAXPLAYERS && !players[destPlrNum].plr->inGame)) return; #ifdef _DEBUG