diff --git a/Laptop/laptop.cpp b/Laptop/laptop.cpp index 831bc0db..9919db3e 100644 --- a/Laptop/laptop.cpp +++ b/Laptop/laptop.cpp @@ -2090,12 +2090,24 @@ UINT32 LaptopScreenHandle() if( gfStartMapScreenToLaptopTransition ) { + SetCurrentCursorFromDatabase( VIDEO_NO_CURSOR ); + gfStartMapScreenToLaptopTransition = FALSE; + //Step 1: Build the laptop image into the save buffer. + RestoreBackgroundRects(); + RenderLapTopImage(); + HighLightRegion(giCurrentRegion); + RenderLaptop(); + RenderButtons(); + PrintDate( ); + PrintBalance( ); + PrintNumberOnTeam( ); + ShowLights(); + if (!gGameExternalOptions.fDisableLaptopTransition) { //Everything is set up to start the transition animation. - //SGPRect SrcRect1; SGPRect SrcRect2, DstRect; INT32 iPercentage, iScalePercentage, iFactor; UINT32 uiStartTime, uiTimeRange, uiCurrTime; @@ -2104,18 +2116,6 @@ UINT32 LaptopScreenHandle() INT32 iRealPercentage; - SetCurrentCursorFromDatabase( VIDEO_NO_CURSOR ); - //Step 1: Build the laptop image into the save buffer. - RestoreBackgroundRects(); - RenderLapTopImage(); - HighLightRegion(giCurrentRegion); - RenderLaptop(); - RenderButtons(); - PrintDate( ); - PrintBalance( ); - PrintNumberOnTeam( ); - ShowLights(); - //Step 2: The mapscreen image is in the EXTRABUFFER, and laptop is in the SAVEBUFFER // Start transitioning the screen. DstRect.iLeft = iScreenWidthOffset; //0 @@ -2399,6 +2399,7 @@ UINT32 LaptopScreenHandle() + UINT32 RenderLaptopPanel() { @@ -2808,6 +2809,19 @@ BOOLEAN LeaveLapTopScreen( void ) { gfDontStartTransitionFromLaptop = TRUE; + SetCurrentCursorFromDatabase( VIDEO_NO_CURSOR ); + + //Step 1: Build the laptop image into the save buffer. + RestoreBackgroundRects(); + RenderLapTopImage(); + HighLightRegion(giCurrentRegion); + RenderLaptop(); + RenderButtons(); + PrintDate( ); + PrintBalance( ); + PrintNumberOnTeam( ); + ShowLights(); + if (!gGameExternalOptions.fDisableLaptopTransition) { SGPRect SrcRect1, SrcRect2, DstRect; @@ -2817,19 +2831,6 @@ BOOLEAN LeaveLapTopScreen( void ) INT32 iRealPercentage; INT32 iLaptopMonitorCenterX, iLaptopMonitorCenterY; - - SetCurrentCursorFromDatabase( VIDEO_NO_CURSOR ); - //Step 1: Build the laptop image into the save buffer. - RestoreBackgroundRects(); - RenderLapTopImage(); - HighLightRegion(giCurrentRegion); - RenderLaptop(); - RenderButtons(); - PrintDate( ); - PrintBalance( ); - PrintNumberOnTeam( ); - ShowLights(); - //Step 2: The mapscreen image is in the EXTRABUFFER, and laptop is in the SAVEBUFFER // Start transitioning the screen. DstRect.iLeft = iScreenWidthOffset + 0; // 0 @@ -2900,6 +2901,7 @@ BOOLEAN LeaveLapTopScreen( void ) return( TRUE ); } + BOOLEAN HandleExit( void ) { // static BOOLEAN fSentImpWarningAlready = FALSE; diff --git a/Multiplayer/client.cpp b/Multiplayer/client.cpp index e0a9260f..6080aaa3 100644 --- a/Multiplayer/client.cpp +++ b/Multiplayer/client.cpp @@ -2424,10 +2424,11 @@ void recieveSETTINGS (RPCParameters *rpcParameters) //recive settings from serve gGameSettings.fOptions[TOPTION_ALLOW_REAL_TIME_SNEAK] = false; gGameExternalOptions.fQuietRealTimeSneak = false; + // WANNE: Take the settings from the ja2_options.ini // WANNE: Enable fast loading - gGameExternalOptions.fDisableLaptopTransition = true; + /*gGameExternalOptions.fDisableLaptopTransition = true; gGameExternalOptions.fFastWWWSitesLoading = true; - gGameExternalOptions.fDisableStrategicTransition = true; + gGameExternalOptions.fDisableStrategicTransition = true;*/ // WANNE: fix HOT DAY in night at arrival by night. // Explanation: If game starting time + first arrival delay < 07:00 (111600) -> we arrive before the sun rises or @@ -2636,10 +2637,11 @@ void reapplySETTINGS() gGameSettings.fOptions[TOPTION_ALLOW_REAL_TIME_SNEAK] = false; gGameExternalOptions.fQuietRealTimeSneak = false; + // WANNE: Take the settings from the ja2_options.ini // WANNE: Enable fast loading - gGameExternalOptions.fDisableLaptopTransition = true; + /*gGameExternalOptions.fDisableLaptopTransition = true; gGameExternalOptions.fFastWWWSitesLoading = true; - gGameExternalOptions.fDisableStrategicTransition = true; + gGameExternalOptions.fDisableStrategicTransition = true;*/ // WANNE: fix HOT DAY in night at arrival by night. // Explanation: If game starting time + first arrival delay < 07:00 (111600) -> we arrive before the sun rises or