Move mapscreen bottom coordinates' initialization

Fixes radar map's initial  position in strategic screen being in the top right corner.
This commit is contained in:
Asdow
2025-01-05 17:08:02 +02:00
parent ac6a1504df
commit db40cd433e
2 changed files with 5 additions and 3 deletions
+5
View File
@@ -51,6 +51,7 @@
#include "Multilingual Text Code Generator.h"
#include "editscreen.h"
#include "Arms Dealer Init.h"
#include "Map Screen Interface Bottom.h"
#include "MPXmlTeams.hpp"
#include "Strategic Mines LUA.h"
#include "UndergroundInit.h"
@@ -1474,6 +1475,10 @@ UINT32 InitializeJA2(void)
return( ERROR_SCREEN );
}
// InitRadarScreenCoords() depend on Mapscreen Interface Bottom coordinates -> need to initiate them first
// before calling InitTacticalEngine()
InitMapScreenInterfaceBottomCoords();
// Init tactical engine
if ( !InitTacticalEngine( ) )
{