diff --git a/Strategic/PreBattle Interface.cpp b/Strategic/PreBattle Interface.cpp index 130900d7..621549c8 100644 --- a/Strategic/PreBattle Interface.cpp +++ b/Strategic/PreBattle Interface.cpp @@ -427,17 +427,21 @@ void InitPreBattleInterface( GROUP *pBattleGroup, BOOLEAN fPersistantPBI ) } } - fMapScreenBottomDirty = TRUE; - ChangeSelectedMapSector( gubPBSectorX, gubPBSectorY, gubPBSectorZ ); - // Headrock: Added FALSE argument, We might need TRUE but not sure. Will need to initiate battle :) - RenderMapScreenInterfaceBottom( FALSE ); - + // silversurfer: moved this up here because this check needs to be done before we draw anything on the map screen - otherwise CTD. + // Also the necessary variables have to be set. //If we are currently in tactical, then set the flag to automatically bring up the mapscreen. if( guiCurrentScreen == GAME_SCREEN ) { gfEnteringMapScreen = TRUE; + gfEnteringMapScreenToEnterPreBattleInterface = TRUE; + return; } + fMapScreenBottomDirty = TRUE; + ChangeSelectedMapSector( gubPBSectorX, gubPBSectorY, gubPBSectorZ ); + // Headrock: Added FALSE argument, We might need TRUE but not sure. Will need to initiate battle :) + RenderMapScreenInterfaceBottom( FALSE ); + if( !fShowTeamFlag ) { ToggleShowTeamsMode();