mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
fix for CTD when the prebattle interface should come up but we are in tactical screen at the moment. The game tried to draw into an invalid screen.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7096 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -427,17 +427,21 @@ void InitPreBattleInterface( GROUP *pBattleGroup, BOOLEAN fPersistantPBI )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fMapScreenBottomDirty = TRUE;
|
// silversurfer: moved this up here because this check needs to be done before we draw anything on the map screen - otherwise CTD.
|
||||||
ChangeSelectedMapSector( gubPBSectorX, gubPBSectorY, gubPBSectorZ );
|
// Also the necessary variables have to be set.
|
||||||
// Headrock: Added FALSE argument, We might need TRUE but not sure. Will need to initiate battle :)
|
|
||||||
RenderMapScreenInterfaceBottom( FALSE );
|
|
||||||
|
|
||||||
//If we are currently in tactical, then set the flag to automatically bring up the mapscreen.
|
//If we are currently in tactical, then set the flag to automatically bring up the mapscreen.
|
||||||
if( guiCurrentScreen == GAME_SCREEN )
|
if( guiCurrentScreen == GAME_SCREEN )
|
||||||
{
|
{
|
||||||
gfEnteringMapScreen = TRUE;
|
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 )
|
if( !fShowTeamFlag )
|
||||||
{
|
{
|
||||||
ToggleShowTeamsMode();
|
ToggleShowTeamsMode();
|
||||||
|
|||||||
Reference in New Issue
Block a user