X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_remote.c;h=b533d389e5af955ea6bc8dd9b0aa76d7c79cb604;hb=df9f72d2912a5424d37dfdb02f76aba8f1ed4df1;hp=8cbbed6eed8cab2983f47c48c940b37dd93205e9;hpb=4f3f29420a3ae0253a195b9ca9a8ca7db67f0a7c;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_remote.c b/player_remote.c index 8cbbed6..b533d38 100644 --- a/player_remote.c +++ b/player_remote.c @@ -3,6 +3,8 @@ #include "player_render.h" #include "network_common.h" #include "addon.h" +#include "font.h" +#include "gui.h" static void player_remote_clear( struct network_player *player ){ addon_cache_unwatch( k_addon_type_player, player->playermodel_view_slot ); @@ -341,6 +343,7 @@ static void remote_player_debug_update(void){ } static void remote_player_nametag( m4x4f pv, v3f co, const char *name ){ + return; vg_ui.font = &vg_ui_font_big; v4f wpos; v3_copy( co, wpos ); @@ -579,7 +582,6 @@ static void animate_remote_players(void){ * Draw remote players */ static void render_remote_players( world_instance *world, camera *cam ){ - SDL_AtomicLock( &addon_system.sl_cache_using_resources ); for( u32 i=0; iactive ) continue; + if( player->active_world != world ) continue; + + struct player_avatar *av = localplayer.playeravatar; + render_remote_player_nametag( + netplayers.final_mtx[av->sk.bone_count*i][3], + player->username ); + } + + glDisable(GL_BLEND); +} + static void remote_players_init(void){ for( u32 i=0; i