From 77c64b6f11663f59bc5753e4bade5bc165d36ca6 Mon Sep 17 00:00:00 2001 From: hgn Date: Thu, 9 Nov 2023 20:23:54 +0000 Subject: [PATCH] dont render if blocked --- network.h | 1 - player_remote.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/network.h b/network.h index ef6876a..3495c6a 100644 --- a/network.h +++ b/network.h @@ -17,7 +17,6 @@ /* * Interface */ -//#define SR_USE_LOCALHOST /* Call it at start; Connects us to the gameserver */ static void network_init(void); diff --git a/player_remote.c b/player_remote.c index 2cc3d6b..fac5ea7 100644 --- a/player_remote.c +++ b/player_remote.c @@ -591,7 +591,7 @@ static void render_remote_players( world_instance *world, camera *cam ){ for( u32 i=0; iactive ) continue; + if( !player->active || player->isblocked ) continue; if( player->active_world != world ) continue; struct player_avatar *av = localplayer.playeravatar; @@ -649,7 +649,7 @@ static void render_remote_players_tags( world_instance *world, camera *cam ){ for( u32 i=0; iactive ) continue; + if( !player->active || player->isblocked ) continue; if( player->active_world != world ) continue; struct player_avatar *av = localplayer.playeravatar; -- 2.25.1