Fixed the smilestails/any other followmobj not spawning at leveltime 0 in a fresh record attack boot!

This commit is contained in:
toasterbabe 2017-10-15 13:37:05 +01:00
parent a4f10a4b96
commit 04160f0081

View file

@ -1890,6 +1890,13 @@ static void Got_Mapcmd(UINT8 **cp, INT32 playernum)
if (resetplayer && !FLS) if (resetplayer && !FLS)
emeralds = 0; emeralds = 0;
if (modeattacking)
{
SetPlayerSkinByNum(0, cv_chooseskin.value-1);
players[0].skincolor = skins[players[0].skin].prefcolor;
CV_StealthSetValue(&cv_playercolor, players[0].skincolor);
}
#ifdef HAVE_BLUA #ifdef HAVE_BLUA
LUAh_MapChange(); LUAh_MapChange();
#endif #endif
@ -1901,16 +1908,6 @@ static void Got_Mapcmd(UINT8 **cp, INT32 playernum)
if (timingdemo) if (timingdemo)
G_DoneLevelLoad(); G_DoneLevelLoad();
if (modeattacking)
{
SetPlayerSkinByNum(0, cv_chooseskin.value-1);
players[0].skincolor = skins[players[0].skin].prefcolor;
CV_StealthSetValue(&cv_playercolor, players[0].skincolor);
// a copy of color
if (players[0].mo)
players[0].mo->color = players[0].skincolor;
}
if (metalrecording) if (metalrecording)
G_BeginMetal(); G_BeginMetal();
if (demorecording) // Okay, level loaded, character spawned and skinned, if (demorecording) // Okay, level loaded, character spawned and skinned,