- Bugfix: Fixed problem with the registration of global variables (lua) for initializing a new game (by Jazz)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5135 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2012-04-01 19:28:31 +00:00
parent 7a40ecd777
commit 841e08de1c
+5 -6
View File
@@ -540,6 +540,11 @@ BOOLEAN InitNewGame( BOOLEAN fReset )
return( TRUE );
}
if( gubScreenCount == 0 )
{
IniLuaGlobal();//Lua
}
//reset autosave
AutoSaveToSlot[0] = FALSE;
AutoSaveToSlot[1] = FALSE;
@@ -680,9 +685,6 @@ fFirstTimeInMapScreen = TRUE;
gAimAvailability[i].ubAimArrayID = gAimAvailabilityTemp[i].ubAimArrayID;
gAimAvailability[i].AimBio = gAimAvailabilityTemp[i].AimBio;
}
//Lua
IniLuaGlobal();
// IF our first time, go into laptop!
if ( gubScreenCount == 0 )
@@ -1196,8 +1198,5 @@ void ReStartingGame()
gubCheatLevel = STARTING_CHEAT_LEVEL;
else
gubCheatLevel = 0;
//Lua
IniLuaGlobal();
}