mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 21:31:32 +00:00
Just do MapChange hook on G_InitNew
Everything that's supposed to call it also calls this...
This commit is contained in:
parent
aa16edec1d
commit
919667ed39
2 changed files with 6 additions and 6 deletions
|
@ -2310,9 +2310,9 @@ static void Got_Mapcmd(UINT8 **cp, INT32 playernum)
|
|||
INT32 resetplayer = 1, lastgametype;
|
||||
UINT8 skipprecutscene, FLS;
|
||||
boolean pencoremode;
|
||||
#ifdef HAVE_BLUA
|
||||
/*#ifdef HAVE_BLUA
|
||||
INT16 mapnumber;
|
||||
#endif
|
||||
#endif*/
|
||||
|
||||
forceresetplayers = deferencoremode = false;
|
||||
|
||||
|
@ -2379,10 +2379,10 @@ static void Got_Mapcmd(UINT8 **cp, INT32 playernum)
|
|||
if (modeattacking) // i remember moving this here in internal fixed a heisenbug so
|
||||
SetPlayerSkinByNum(0, cv_chooseskin.value-1);
|
||||
|
||||
#ifdef HAVE_BLUA
|
||||
/*#ifdef HAVE_BLUA
|
||||
mapnumber = M_MapNumber(mapname[3], mapname[4]);
|
||||
LUAh_MapChange(mapnumber);
|
||||
#endif
|
||||
#endif*/
|
||||
|
||||
G_InitNew(pencoremode, mapname, resetplayer, skipprecutscene);
|
||||
if (demoplayback && !timingdemo)
|
||||
|
|
|
@ -5917,9 +5917,9 @@ void G_DoPlayDemo(char *defdemoname)
|
|||
// didn't start recording right away.
|
||||
demo_start = false;
|
||||
|
||||
#ifdef HAVE_BLUA
|
||||
/*#ifdef HAVE_BLUA
|
||||
LUAh_MapChange(gamemap);
|
||||
#endif
|
||||
#endif*/
|
||||
displayplayer = consoleplayer = 0;
|
||||
memset(playeringame,0,sizeof(playeringame));
|
||||
playeringame[0] = true;
|
||||
|
|
Loading…
Reference in a new issue