mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
- 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:
@@ -540,6 +540,11 @@ BOOLEAN InitNewGame( BOOLEAN fReset )
|
|||||||
return( TRUE );
|
return( TRUE );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( gubScreenCount == 0 )
|
||||||
|
{
|
||||||
|
IniLuaGlobal();//Lua
|
||||||
|
}
|
||||||
|
|
||||||
//reset autosave
|
//reset autosave
|
||||||
AutoSaveToSlot[0] = FALSE;
|
AutoSaveToSlot[0] = FALSE;
|
||||||
AutoSaveToSlot[1] = FALSE;
|
AutoSaveToSlot[1] = FALSE;
|
||||||
@@ -681,9 +686,6 @@ fFirstTimeInMapScreen = TRUE;
|
|||||||
gAimAvailability[i].AimBio = gAimAvailabilityTemp[i].AimBio;
|
gAimAvailability[i].AimBio = gAimAvailabilityTemp[i].AimBio;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Lua
|
|
||||||
IniLuaGlobal();
|
|
||||||
|
|
||||||
// IF our first time, go into laptop!
|
// IF our first time, go into laptop!
|
||||||
if ( gubScreenCount == 0 )
|
if ( gubScreenCount == 0 )
|
||||||
{
|
{
|
||||||
@@ -1197,7 +1199,4 @@ void ReStartingGame()
|
|||||||
else
|
else
|
||||||
gubCheatLevel = 0;
|
gubCheatLevel = 0;
|
||||||
|
|
||||||
//Lua
|
|
||||||
IniLuaGlobal();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user