[Fix] Prevent menu_small from opening when dead.
This commit is contained in:
		
							parent
							
								
									790bd9b472
								
							
						
					
					
						commit
						9bd191ddfe
					
				@ -150,9 +150,10 @@ static void menu_main_exit(char* str) {
 | 
				
			|||||||
/* Ze ingame menu. */
 | 
					/* Ze ingame menu. */
 | 
				
			||||||
/* Small ingame menu. */
 | 
					/* Small ingame menu. */
 | 
				
			||||||
void menu_small(void) {
 | 
					void menu_small(void) {
 | 
				
			||||||
  if(menu_isOpen(MENU_MAIN) ||
 | 
					  if(player_isFlag(PLAYER_DESTROYED) || pilot_isFlag(player, PILOT_DEAD) ||
 | 
				
			||||||
 | 
					      (menu_isOpen(MENU_MAIN) ||
 | 
				
			||||||
       menu_isOpen(MENU_SMALL) ||
 | 
					       menu_isOpen(MENU_SMALL) ||
 | 
				
			||||||
     menu_isOpen(MENU_DEATH))
 | 
					       menu_isOpen(MENU_DEATH)))
 | 
				
			||||||
    return; /* It's already open.. */
 | 
					    return; /* It's already open.. */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  unsigned int wid;
 | 
					  unsigned int wid;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user