fix swapping skins mid-game removing restat
This commit is contained in:
parent
96e81b1807
commit
772ad54efc
1 changed files with 10 additions and 2 deletions
|
|
@ -616,8 +616,16 @@ void SetPlayerSkinByNum(INT32 playernum, INT32 skinnum)
|
|||
|
||||
player->followitem = skin->followitem;
|
||||
|
||||
player->kartspeed = skin->kartspeed;
|
||||
player->kartweight = skin->kartweight;
|
||||
if (player->kartspeedrestat != 0 || player->kartweightrestat != 0)
|
||||
{
|
||||
player->kartspeed = player->kartspeedrestat;
|
||||
player->kartweight = player->kartweightrestat;
|
||||
}
|
||||
else
|
||||
{
|
||||
player->kartspeed = skin->kartspeed;
|
||||
player->kartweight = skin->kartweight;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (!(cht_debug || devparm) && !(netgame || multiplayer || demo.playback))
|
||||
|
|
|
|||
Loading…
Reference in a new issue