mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Ironman: Don't carry modified stats into the next race
This commit is contained in:
parent
1798ae9f4e
commit
d95244a693
2 changed files with 12 additions and 1 deletions
|
|
@ -2441,10 +2441,17 @@ void G_PlayerReborn(INT32 player, boolean betweenmaps)
|
||||||
p->botvars.rival = botrival;
|
p->botvars.rival = botrival;
|
||||||
p->xtralife = xtralife;
|
p->xtralife = xtralife;
|
||||||
|
|
||||||
if (betweenmaps)
|
if (betweenmaps)
|
||||||
|
{
|
||||||
p->fakeskin = MAXSKINS;
|
p->fakeskin = MAXSKINS;
|
||||||
|
p->kartspeed = skins[p->skin].kartspeed;
|
||||||
|
p->kartweight = skins[p->skin].kartweight;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
p->fakeskin = fakeskin;
|
p->fakeskin = fakeskin;
|
||||||
|
}
|
||||||
|
|
||||||
p->lastfakeskin = lastfakeskin;
|
p->lastfakeskin = lastfakeskin;
|
||||||
|
|
||||||
// SRB2kart
|
// SRB2kart
|
||||||
|
|
|
||||||
|
|
@ -410,6 +410,10 @@ void ClearFakePlayerSkin(player_t* player)
|
||||||
if (!P_MobjWasRemoved(player->mo))
|
if (!P_MobjWasRemoved(player->mo))
|
||||||
{
|
{
|
||||||
player->mo->skin = &skins[player->skin];
|
player->mo->skin = &skins[player->skin];
|
||||||
|
player->fakeskin = MAXSKINS;
|
||||||
|
player->kartspeed = skins[player->skin].kartspeed;
|
||||||
|
player->kartweight = skins[player->skin].kartweight;
|
||||||
|
player->charflags = skins[player->skin].flags;
|
||||||
S_StartSound(player->mo, sfx_s3k9f);
|
S_StartSound(player->mo, sfx_s3k9f);
|
||||||
K_SpawnMagicianParticles(player->mo, 5);
|
K_SpawnMagicianParticles(player->mo, 5);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue