mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Merged from revision: 7157
- Fixed inventory artefacts in widescreen (by anv) - Automatically return to team panel on turn end (better situation overview during enemy turn) (by anv) ja2_options.ini: AUTO_COLLAPSE_INVENTORY_ON_TURN_END git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7158 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1337,6 +1337,10 @@ UINT32 UIHandleEndTurn( UI_EVENT *pUIEvent )
|
||||
}
|
||||
}
|
||||
|
||||
// anv: automatically return to team panel on turn end (better situation overview during enemy turn)
|
||||
if( gGameExternalOptions.fAutoCollapseInventoryOnTurnEnd == TRUE )
|
||||
SetCurrentInterfacePanel( TEAM_PANEL );
|
||||
|
||||
return( GAME_SCREEN );
|
||||
}
|
||||
|
||||
|
||||
@@ -2146,6 +2146,12 @@ BOOLEAN InitializeSMPanel( )
|
||||
// full cursor - disable, from item pickup
|
||||
EnableSMPanelButtons( FALSE, TRUE );
|
||||
}
|
||||
|
||||
if( INTERFACE_START_X > 0 )
|
||||
{
|
||||
ColorFillVideoSurfaceArea( FRAME_BUFFER, 0, INV_INTERFACE_START_Y, SCREEN_WIDTH, SCREEN_HEIGHT, 0 );
|
||||
ColorFillVideoSurfaceArea( guiSAVEBUFFER, 0, INV_INTERFACE_START_Y, SCREEN_WIDTH, SCREEN_HEIGHT, 0 );
|
||||
}
|
||||
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user