Merge branch 'gametype-change-fix' into 'master'

Don't show gametype was changed message if the same gametype

See merge request KartKrew/Kart!1686
This commit is contained in:
Sal 2023-12-13 06:30:19 +00:00
commit 9a49013154

View file

@ -2721,7 +2721,7 @@ static void Got_Mapcmd(UINT8 **cp, INT32 playernum)
SendKick(playernum, KICK_MSG_CON_FAIL);
return;
}
roundqueue.position = position;
if (size < roundqueue.size)
{
@ -4997,7 +4997,7 @@ void D_GameTypeChanged(INT32 lastgametype)
if (gametype >= 0 && gametype < numgametypes)
newgt = gametypes[gametype]->name;
if (oldgt && newgt)
if (oldgt && newgt && (lastgametype != gametype))
CONS_Printf(M_GetText("Gametype was changed from %s to %s\n"), oldgt, newgt);
}