mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
- Improved previous 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@1855 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+5
-3
@@ -1115,9 +1115,11 @@ void InitHelicopterEntranceByMercs( void )
|
|||||||
// Update clock ahead from STARTING_TIME to make mercs arrive!
|
// Update clock ahead from STARTING_TIME to make mercs arrive!
|
||||||
WarpGameTime( gGameExternalOptions.iFirstArrivalDelay, WARPTIME_PROCESS_EVENTS_NORMALLY );
|
WarpGameTime( gGameExternalOptions.iFirstArrivalDelay, WARPTIME_PROCESS_EVENTS_NORMALLY );
|
||||||
|
|
||||||
// WANNE: fix HOT DAY in night at arrival by night. Maybe gubEnvLightValue=12 is no good value..
|
// WANNE: fix HOT DAY in night at arrival by night.
|
||||||
// Maybe we should add a switch-case for different night times and set gubEnvLightValue to differnt values
|
// Explanation: If game starting time + first arrival delay < 07:00 (111600) -> we arrive before the sun rises or
|
||||||
if( gGameExternalOptions.iFirstArrivalDelay < 21599)
|
// if game starting time + first arrival delay >= 21:00 (162000) -> we arrive after the sun goes down
|
||||||
|
if( (gGameExternalOptions.iGameStartingTime + gGameExternalOptions.iFirstArrivalDelay) < 111600 ||
|
||||||
|
(gGameExternalOptions.iGameStartingTime + gGameExternalOptions.iFirstArrivalDelay >= 162000))
|
||||||
{
|
{
|
||||||
gubEnvLightValue = 12;
|
gubEnvLightValue = 12;
|
||||||
LightSetBaseLevel(gubEnvLightValue);
|
LightSetBaseLevel(gubEnvLightValue);
|
||||||
|
|||||||
Reference in New Issue
Block a user