mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed so the 'default' skin is used first when no other skin is found
This commit is contained in:
parent
0c9dfd81fd
commit
2f801d47cf
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue