dont render if blocked
authorhgn <hgodden00@gmail.com>
Thu, 9 Nov 2023 20:23:54 +0000 (20:23 +0000)
committerhgn <hgodden00@gmail.com>
Thu, 9 Nov 2023 20:23:54 +0000 (20:23 +0000)
network.h
player_remote.c

index ef6876a79b843c2e2de39ef634331cb075816895..3495c6a798a997f4cacc333d427ec9049f4e479c 100644 (file)
--- 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);
index 2cc3d6bcd45afa6f473331794c2ceb70d63f1ba2..fac5ea7dbf8b6c94398b8fdd442c87ee063224e6 100644 (file)
@@ -591,7 +591,7 @@ static void render_remote_players( world_instance *world, camera *cam ){
 
    for( u32 i=0; i<NETWORK_MAX_PLAYERS; i ++ ){
       struct network_player *player = &netplayers.list[i];
-      if( !player->active ) 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; i<NETWORK_MAX_PLAYERS; i ++ ){
       struct network_player *player = &netplayers.list[i];
-      if( !player->active ) continue;
+      if( !player->active || player->isblocked ) continue;
       if( player->active_world != world ) continue;
 
       struct player_avatar *av = localplayer.playeravatar;