From: hgn Date: Thu, 9 Nov 2023 20:23:54 +0000 (+0000) Subject: dont render if blocked X-Git-Url: https://harrygodden.com/git/?a=commitdiff_plain;h=77c64b6f11663f59bc5753e4bade5bc165d36ca6;p=carveJwlIkooP6JGAAIwe30JlM.git dont render if blocked --- 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;