@@ -8876,7 +8876,9 @@ - (void) setGuiToGameOptionsScreen
88768876
88778877	[[UNIVERSE gameView ] clearMouse ];
88788878	[[UNIVERSE gameController ] setMouseInteractionModeForUIWithMouseInteraction: YES ];
8879- 	
8879+ 
8880+ 	gui_screen = GUI_SCREEN_GAMEOPTIONS;
8881+ 
88808882	//  GUI stuff
88818883	{
88828884		#define  OO_SETACCESSCONDITIONFORROW (condition, row )				\
@@ -9138,9 +9140,6 @@ - (void) setGuiToGameOptionsScreen
91389140	}
91399141	/*  ends */ 
91409142
9141- 	[self  setShowDemoShips: NO ];
9142- 	gui_screen = GUI_SCREEN_GAMEOPTIONS;
9143- 
91449143	[self  setShowDemoShips: NO ];
91459144	[UNIVERSE enterGUIViewModeWithMouseInteraction: YES ];
91469145}
@@ -9155,6 +9154,8 @@ - (void) setGuiToLoadSaveScreen
91559154
91569155	[[UNIVERSE gameController ] setMouseInteractionModeForUIWithMouseInteraction: YES ];
91579156
9157+ 	gui_screen = GUI_SCREEN_OPTIONS;
9158+ 
91589159	if  ([self  status ] == STATUS_DOCKED)
91599160	{
91609161		if  ([self  dockedStation ] == nil )  [self  setDockedAtMainStation ];
@@ -9232,7 +9233,6 @@ - (void) setGuiToLoadSaveScreen
92329233	[[UNIVERSE gameView ] clearMouse ];
92339234
92349235	[self  setShowDemoShips: NO ];
9235- 	gui_screen = GUI_SCREEN_OPTIONS;
92369236
92379237	[UNIVERSE enterGUIViewModeWithMouseInteraction: YES ];
92389238
@@ -9439,6 +9439,8 @@ - (void) setGuiToEquipShipScreen:(int)skipParam selectingFacingFor:(NSString *)e
94399439		BOOL 			weaponMounted = NO ;
94409440		BOOL 			guiChanged = (gui_screen != GUI_SCREEN_EQUIP_SHIP);
94419441
9442+ 		gui_screen = GUI_SCREEN_EQUIP_SHIP;
9443+ 
94429444		[gui clearAndKeepBackground: !guiChanged];
94439445		[gui setTitle: DESC (@" equip-title" 
94449446
@@ -9684,8 +9686,6 @@ - (void) setGuiToEquipShipScreen:(int)skipParam selectingFacingFor:(NSString *)e
96849686	/*  ends */ 
96859687
96869688	chosen_weapon_facing = WEAPON_FACING_NONE;
9687- 	[self  setShowDemoShips: NO ];
9688- 	gui_screen = GUI_SCREEN_EQUIP_SHIP;
96899689
96909690	[self  setShowDemoShips: NO ];
96919691	[UNIVERSE enterGUIViewModeWithMouseInteraction: YES ];
@@ -9752,7 +9752,9 @@ - (void) setGuiToInterfacesScreen:(int)skip
97529752	NSDictionary  *interfaces = [[self  dockedStation ] localInterfaces ];
97539753	NSArray 		*interfaceKeys = [interfaces keysSortedByValueUsingSelector: @selector (interfaceCompare: )]; //  sorts by category, then title
97549754	int  i;
9755- 	
9755+ 
9756+ 	OOGUIScreenID	oldScreen = gui_screen;
9757+ 
97569758	//  GUI stuff
97579759	{
97589760		GuiDisplayGen	*gui = [UNIVERSE gui ];
@@ -9763,6 +9765,7 @@ - (void) setGuiToInterfacesScreen:(int)skip
97639765		[gui clearAndKeepBackground: !guiChanged];
97649766		[gui setTitle: DESC (@" interfaces-title" 
97659767
9768+ 		gui_screen = GUI_SCREEN_INTERFACES;
97669769
97679770		OOGUITabSettings tab_stops;
97689771		tab_stops[0 ] = 0 ;
@@ -9853,11 +9856,8 @@ - (void) setGuiToInterfacesScreen:(int)skip
98539856	}
98549857	/*  ends */ 
98559858
9856- 
98579859	[self  setShowDemoShips: NO ];
98589860
9859- 	OOGUIScreenID	oldScreen = gui_screen;
9860- 	gui_screen = GUI_SCREEN_INTERFACES;
98619861	[self  noteGUIDidChangeFrom: oldScreen to: gui_screen];
98629862
98639863	[self  setShowDemoShips: NO ];
0 commit comments