diff --git a/starlanes.c b/starlanes.c index 9cc873c..3400f7d 100644 --- a/starlanes.c +++ b/starlanes.c @@ -101,8 +101,7 @@ /* #define NUMMOVES 5 number of different moves a player gets */ -//#define END_PERCENT 55 /* end when this much of the map is full */ -#define END_PERCENT 1 /* end when this much of the map is full */ +#define END_PERCENT 55 /* end when this much of the map is full */ #define DEF_LINES 25 /* default number of lines on screen */ #define DEF_COLUMNS 80 /* default number of columns on screen */ @@ -114,7 +113,6 @@ #define CTRL_L 12 #define CTRL_C 3 #define CTRL_Z 26 - @@ -154,7 +152,7 @@ void redraw(void); void show_standings(char *title); void show_company_holdings(char *title); int order_compare(const void *v1, const void *v2); -int quit_yn(void); +void quit_yn(void); void shutdown(void); void usage(void); /* ai functions @@ -1523,15 +1521,15 @@ void show_company_holdings(char *title) ** quit_yn() -- asks the users if they're sure they want to quit */ -int quit_yn(void) +void quit_yn(void) { WINDOW *yn; if ((yn = newwin(5,42,5,(COLUMNS-42)/2)) == NULL) { fprintf(stderr,"starlanes: couldn't open window for y/n prompt\n"); - exit(1);return 0; + exit(1); } - + wattron(yn,QUIT_BORDER); box(yn,'|','='); wattroff(yn,QUIT_BORDER); @@ -1546,12 +1544,11 @@ int quit_yn(void) if (toupper(getch()) == 'Y') { delwin(yn); shutdown(); - exit(2);return 0; + exit(2); } delwin(yn); touchwin(mapwin);touchwin(coinfo); wnoutrefresh(mapwin);wnoutrefresh(coinfo); - return 1; } /*