fixed so the 'default' skin is used first when no other skin is found

This commit is contained in:
Magnus Auvinen 2009-01-21 21:00:06 +00:00
parent 0c9dfd81fd
commit 2f801d47cf

View file

@ -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;