improved Error-handling for loading missions
This commit is contained in:
parent
93d9688d6b
commit
790f9ef9a1
|
@ -1,5 +1,9 @@
|
|||
D1X-Rebirth Changelog
|
||||
|
||||
20070231
|
||||
--------
|
||||
main/menu.c: improved Error-handling for loading missions
|
||||
|
||||
20070230
|
||||
--------
|
||||
main/game.c, main/newmenu.c, main/newmenu.h: introduced newmenu_dotiny() from D2X to show menus with GAME_FONT; extended Help-menu and removed D1X-Help-menu
|
||||
|
|
|
@ -474,6 +474,9 @@ int main(int argc,char **argv)
|
|||
if ( FindArg( "-fps" ))
|
||||
framerate_on = 1;
|
||||
|
||||
if ( FindArg( "-nonicefps" ))
|
||||
use_nice_fps = 0;
|
||||
|
||||
if ((t = FindArg( "-demo" ))) {
|
||||
int j;
|
||||
snprintf(start_demo, 12, Args[t+1]);
|
||||
|
|
|
@ -673,8 +673,8 @@ void do_new_game_menu()
|
|||
return; //abort!
|
||||
|
||||
strcpy(config_last_mission, m[new_mission_num] );
|
||||
|
||||
if (!load_mission(new_mission_num) || !cfexist(get_level_file(new_mission_num))) {
|
||||
|
||||
if (!load_mission(new_mission_num) || (strcmp(get_level_file(new_mission_num),"")?!cfexist(get_level_file(new_mission_num)):0)) {
|
||||
nm_messagebox( NULL, 1, TXT_OK, "Error loading Mission file");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue