about summary refs log tree commit diff
path: root/src/game/client/gameclient.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2009-01-21 21:00:06 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2009-01-21 21:00:06 +0000
commit2f801d47cfeeb4d6f545c8a907e31624433732b2 (patch)
treeedbf809b4440cec32ad612d0d89e17d0cc26b152 /src/game/client/gameclient.cpp
parent0c9dfd81fdd5752bad476bfd3332d6213fbb15da (diff)
downloadzcatch-2f801d47cfeeb4d6f545c8a907e31624433732b2.tar.gz
zcatch-2f801d47cfeeb4d6f545c8a907e31624433732b2.zip
fixed so the 'default' skin is used first when no other skin is found
Diffstat (limited to 'src/game/client/gameclient.cpp')
-rw-r--r--src/game/client/gameclient.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp
index 69045cce..51a23343 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;