Fix missing asset files with ones from 5.0.7D
This commit is contained in:
@@ -793,15 +793,15 @@ main
|
||||
if (getmessage() == MAIL_SET_ROOKIE_MISSION) // set rookie, see conlobby.script
|
||||
{
|
||||
// caution: actually 0 is not correct but who care? ^^
|
||||
if (o_game_options[0].nselected != 2)
|
||||
if (o_game_options[0].nselected != $$g_nRookieGameType$$)
|
||||
{
|
||||
o_game_options[0].nselected = 2
|
||||
o_game_options[0].nselected = $$g_nRookieGameType$$
|
||||
mail(MAIL_SET_ROOKIE_MISSION, this)
|
||||
}
|
||||
// find mission:
|
||||
for k = 0; k < o_game_options[1].list_size; k++
|
||||
{
|
||||
if equal$(o_game_options[1].list_item[k], ROOKIE_MISSION)
|
||||
if equal$(o_game_options[1].list_item[k], $$g_szRookieMission$$)
|
||||
{
|
||||
// found mission
|
||||
break
|
||||
@@ -855,24 +855,26 @@ main
|
||||
else
|
||||
{
|
||||
// visibility
|
||||
o_game_options[2].nselected = 0 // Default
|
||||
o_game_options[2].nselected = $$g_nRookieVisibility$$ // [RookieMission] ini
|
||||
callback($$SetNetworkMissionParamater$$, visibility, o_game_options[2].nselected)
|
||||
|
||||
// weather
|
||||
o_game_options[3].nselected = 0 // off
|
||||
o_game_options[3].nselected = $$g_nRookieWeather$$ // [RookieMission] ini
|
||||
callback($$SetNetworkMissionParamater$$, weather, o_game_options[3].nselected)
|
||||
|
||||
// time of day
|
||||
o_game_options[4].nselected = 0
|
||||
o_game_options[4].nselected = $$g_nRookieTimeOfDay$$ // [RookieMission] ini
|
||||
callback($$SetNetworkMissionParamater$$, night_parameter, o_game_options[4].nselected)
|
||||
callback($$Shell_CallbackHandler$$, ShellSetTime, o_game_options[4].nselected)
|
||||
}
|
||||
|
||||
// time limit
|
||||
// time limit - use ini override if set, else TIME_VALUE_DEFAULT
|
||||
if $$g_nRookieTimeLimit$$ >= 0
|
||||
temp_num = $$g_nRookieTimeLimit$$ // [RookieMission] ini
|
||||
else
|
||||
temp_num = TIME_VALUE_DEFAULT
|
||||
for k = 0; k < o_game_options[5].list_size; k++
|
||||
{
|
||||
temp_num = makeint(o_game_options[5].list_item[k])
|
||||
if (temp_num == TIME_VALUE_DEFAULT)
|
||||
if (makeint(o_game_options[5].list_item[k]) == temp_num)
|
||||
{
|
||||
o_game_options[5].nselected = k
|
||||
break
|
||||
@@ -935,31 +937,31 @@ main
|
||||
{
|
||||
// radar
|
||||
nTempParam = radar
|
||||
nTempValue = 0 // Novice
|
||||
nTempValue = $$g_nRookieRadar$$ // [RookieMission] ini (0=Novice)
|
||||
o_game_options[6].nselected = nTempValue
|
||||
callback($$SetNetworkMissionParamater$$, nTempParam, nTempValue)
|
||||
|
||||
// heat management
|
||||
nTempParam = HEAT_PARAMETER
|
||||
nTempValue = 0
|
||||
nTempValue = $$g_nRookieHeat$$ // [RookieMission] ini
|
||||
o_game_options[7].state = 0
|
||||
callback($$SetNetworkMissionParamater$$,nTempParam, nTempValue)
|
||||
|
||||
// friendly fire
|
||||
nTempParam = FRIENDLY_FIRE_PERCENTGE_PARAMETER
|
||||
nTempValue = 0
|
||||
nTempValue = $$g_nRookieFriendlyFire$$ // [RookieMission] ini
|
||||
o_game_options[8].state = 0
|
||||
callback($$SetNetworkMissionParamater$$,nTempParam, nTempValue)
|
||||
|
||||
// splash
|
||||
nTempParam = SPLASH_ON_PARAMETER
|
||||
nTempValue = 0
|
||||
nTempValue = $$g_nRookieSplash$$ // [RookieMission] ini
|
||||
o_game_options[9].state = 0
|
||||
callback($$SetNetworkMissionParamater$$,nTempParam, nTempValue)
|
||||
|
||||
// unlimited ammo
|
||||
nTempParam = UNLIMITED_AMMO_PARAMETER
|
||||
nTempValue = 1 // be cautious
|
||||
nTempValue = $$g_nRookieUnlimitedAmmo$$ // [RookieMission] ini
|
||||
o_game_options[10].state = 0
|
||||
callback($$SetNetworkMissionParamater$$,nTempParam, nTempValue)
|
||||
|
||||
@@ -975,7 +977,7 @@ main
|
||||
|
||||
// weapon jam
|
||||
nTempParam = WEAPON_JAM_PARAMETER
|
||||
nTempValue = 0
|
||||
nTempValue = $$g_nRookieWeaponJam$$ // [RookieMission] ini
|
||||
o_game_options[14].state = 0
|
||||
callback($$SetNetworkMissionParamater$$,nTempParam, nTempValue)
|
||||
|
||||
@@ -987,13 +989,13 @@ main
|
||||
|
||||
// advance mode
|
||||
nTempParam = ADVANCE_MODE_PARAMETER
|
||||
nTempValue = 0
|
||||
nTempValue = $$g_nRookieAdvanceMode$$ // [RookieMission] ini
|
||||
o_game_options[15].state = 0
|
||||
callback($$SetNetworkMissionParamater$$,nTempParam, nTempValue)
|
||||
|
||||
// armor mode
|
||||
nTempParam = ARMOR_MODE_PARAMETER
|
||||
nTempValue = 0
|
||||
nTempValue = $$g_nRookieArmorMode$$ // [RookieMission] ini
|
||||
o_game_options[16].state = 0
|
||||
callback($$SetNetworkMissionParamater$$,nTempParam, nTempValue)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user