[Fix] How has noone even noticed this bug?! It's been in there since..

forever.

You can no longer open the information panel twise.
This commit is contained in:
Allanis 2014-03-08 01:20:17 +00:00
parent 79aaac64ad
commit 3e61178e6d
2 changed files with 3 additions and 1 deletions

1
TODO
View File

@ -11,6 +11,7 @@ Major:
-- Like mission system, but they accur naturally/randomly.
-- Had similar power to mission system
-- Unique pilot system (besides mission uniques).
-- Escorts available for hire.
-- Nicer AI.
-- Ship fleet movement (Maybe based on boids?)
-- Options menu needs to do something.

View File

@ -268,11 +268,12 @@ void menu_info(void) {
char str[128];
char* lt;
unsigned int wid;
wid = window_create("Info", -1, -1, INFO_WIDTH, INFO_HEIGHT);
/* Can't open menu twise. */
if(menu_isOpen(MENU_INFO)) return;
wid = window_create("Info", -1, -1, INFO_WIDTH, INFO_HEIGHT);
/* Pilot generics. */
lt = ltime_pretty(ltime_get());
window_addText(wid, 20, 20, 120, INFO_HEIGHT-60,