Skip to content

Commit 9d42fc0

Browse files
committed
muted player's minimap drawings are not seen
clients who muted other clients in F9 menu wont see their minimap drawings
1 parent f1ed077 commit 9d42fc0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/game/client/swarm/vgui/asw_hud_minimap.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ using namespace vgui;
2323
#include <keyvalues.h>
2424
#include "asw_hud_minimap.h"
2525
#include "c_asw_player.h"
26+
#include "c_playerresource.h"
2627
#include "c_asw_marine.h"
2728
#include "asw_marine_profile.h"
2829
#include "c_asw_marine_resource.h"
@@ -166,6 +167,9 @@ void MsgFunc_ASWMapLine( bf_read &msg )
166167
int world_x = msg.ReadLong();
167168
int world_y = msg.ReadLong();
168169

170+
if ( g_PR->IsMuted( player_index ) )
171+
return;
172+
169173
C_ASW_Player *local = C_ASW_Player::GetLocalASWPlayer();
170174
if ( local )
171175
{

0 commit comments

Comments
 (0)