From e7241d743cbd73b2950ce73daba35491a47735ea Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 10 Mar 2008 19:36:05 +0000 Subject: fixed the ninja rendering --- src/game/client/gc_hooks.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/game/client/gc_hooks.cpp') diff --git a/src/game/client/gc_hooks.cpp b/src/game/client/gc_hooks.cpp index e1644f36..7d2e1546 100644 --- a/src/game/client/gc_hooks.cpp +++ b/src/game/client/gc_hooks.cpp @@ -506,8 +506,12 @@ extern "C" void modc_message(int msg) if(msg_unpack_error() || cid < 0 || cid >= MAX_CLIENTS) return; - strncpy(client_datas[cid].name, name, 64); - strncpy(client_datas[cid].skin_name, skinname, 64); + str_copy(client_datas[cid].name, name, 64); + str_copy(client_datas[cid].skin_name, skinname, 64); + + // make sure that we don't set a special skin on the client + if(client_datas[cid].skin_name[0] == 'x' || client_datas[cid].skin_name[1] == '_') + str_copy(client_datas[cid].skin_name, "default", 64); int use_custom_color = msg_unpack_int(); client_datas[cid].skin_info.color_body = skin_get_color(msg_unpack_int()); -- cgit 1.4.1