From 96498110839b0c710273135d43a53ffc405120f2 Mon Sep 17 00:00:00 2001 From: Wanne Date: Tue, 26 Feb 2008 19:41:45 +0000 Subject: [PATCH] - bugfix: If the merc arrives with the helicopter at night (defined in the ja2_options.ini) it was daytime in tactical git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1854 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- gamescreen.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gamescreen.cpp b/gamescreen.cpp index 6567fd364..d8dba2860 100644 --- a/gamescreen.cpp +++ b/gamescreen.cpp @@ -1115,6 +1115,14 @@ void InitHelicopterEntranceByMercs( void ) // Update clock ahead from STARTING_TIME to make mercs arrive! WarpGameTime( gGameExternalOptions.iFirstArrivalDelay, WARPTIME_PROCESS_EVENTS_NORMALLY ); + // WANNE: fix HOT DAY in night at arrival by night. Maybe gubEnvLightValue=12 is no good value.. + // Maybe we should add a switch-case for different night times and set gubEnvLightValue to differnt values + if( gGameExternalOptions.iFirstArrivalDelay < 21599) + { + gubEnvLightValue = 12; + LightSetBaseLevel(gubEnvLightValue); + } + AirRaidDef.sSectorX = 9; AirRaidDef.sSectorY = 1; AirRaidDef.sSectorZ = 0;