From 2f801d47cfeeb4d6f545c8a907e31624433732b2 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Wed, 21 Jan 2009 21:00:06 +0000 Subject: [PATCH] fixed so the 'default' skin is used first when no other skin is found --- src/game/client/gameclient.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 69045cce6..51a23343f 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -581,7 +581,11 @@ void GAMECLIENT::on_snapshot() // find new skin clients[cid].skin_id = gameclient.skins->find(clients[cid].skin_name); if(clients[cid].skin_id < 0) - clients[cid].skin_id = 0; + { + clients[cid].skin_id = gameclient.skins->find("default"); + if(clients[cid].skin_id < 0) + clients[cid].skin_id = 0; + } if(clients[cid].use_custom_color) clients[cid].skin_info.texture = gameclient.skins->get(clients[cid].skin_id)->color_texture;