apparently this runs even when the player slot is vacant
This commit is contained in:
parent
7bd4c0195b
commit
30815b240d
1 changed files with 19 additions and 13 deletions
32
src/g_game.c
32
src/g_game.c
|
|
@ -2928,27 +2928,33 @@ void G_PlayerReborn(INT32 player, boolean betweenmaps)
|
|||
kartspeed = kartspeedrestat;
|
||||
kartweight = kartweightrestat;
|
||||
|
||||
if (player == consoleplayer)
|
||||
if (playeringame[player])
|
||||
{
|
||||
HU_AddChatText(va("You are now %d speed, %d weight.", kartspeed, kartweight), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
HU_AddChatText(va("%s is now %d speed, %d weight.", player_names[player], kartspeed, kartweight), true);
|
||||
if (player == consoleplayer)
|
||||
{
|
||||
HU_AddChatText(va("You are now %d speed, %d weight.", kartspeed, kartweight), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
HU_AddChatText(va("%s is now %d speed, %d weight.", player_names[player], kartspeed, kartweight), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
kartspeed = skins[players[player].skin].kartspeed;
|
||||
kartweight = skins[players[player].skin].kartweight;
|
||||
|
||||
if (player == consoleplayer)
|
||||
|
||||
if (playeringame[player])
|
||||
{
|
||||
HU_AddChatText(va("You are now using your skin's default stats."), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
HU_AddChatText(va("%s is now using their skin's default stats.", player_names[player]), true);
|
||||
if (player == consoleplayer)
|
||||
{
|
||||
HU_AddChatText(va("You are now using your skin's default stats."), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
HU_AddChatText(va("%s is now using their skin's default stats.", player_names[player]), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue