From b35fceee218f00143bb256e6f6f17dd00b5c6a29 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 30 Jun 2012 19:16:55 +0000 Subject: [PATCH] Remove unused function net_udp_get_player_name --- d2x-rebirth/main/net_udp.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/d2x-rebirth/main/net_udp.c b/d2x-rebirth/main/net_udp.c index c63e1db5e..6e04b0677 100644 --- a/d2x-rebirth/main/net_udp.c +++ b/d2x-rebirth/main/net_udp.c @@ -1879,16 +1879,6 @@ void net_udp_resend_sync_due_to_packet_loss() net_udp_send_game_info(UDP_sync_player.player.protocol.udp.addr, UPID_SYNC); } -char * net_udp_get_player_name( int objnum ) -{ - if ( objnum < 0 ) return NULL; - if ( Objects[objnum].type != OBJ_PLAYER ) return NULL; - if ( Objects[objnum].id >= MAX_PLAYERS ) return NULL; - if ( Objects[objnum].id >= N_players ) return NULL; - - return Players[Objects[objnum].id].callsign; -} - void net_udp_add_player(UDP_sequence_packet *p) { int i;