diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-01-21 21:00:06 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-01-21 21:00:06 +0000 |
| commit | 2f801d47cfeeb4d6f545c8a907e31624433732b2 (patch) | |
| tree | edbf809b4440cec32ad612d0d89e17d0cc26b152 | |
| parent | 0c9dfd81fdd5752bad476bfd3332d6213fbb15da (diff) | |
| download | zcatch-2f801d47cfeeb4d6f545c8a907e31624433732b2.tar.gz zcatch-2f801d47cfeeb4d6f545c8a907e31624433732b2.zip | |
fixed so the 'default' skin is used first when no other skin is found
| -rw-r--r-- | src/game/client/gameclient.cpp | 6 |
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; |