/*
Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
+Copyright (C) 2011-2015 Perpendicular Dimensions
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
"\n"
"Blob Wars, Episode I - Metal Blob Solid (Version %.2f, Release %d)\n"
"Copyright (C) 2004-2011 Parallel Realities\n"
+ "Copyright (C) 2011-2015 Perpendicular Dimensions\n"
"Licensed under the GNU General Public License (GPL)\n"
"\n"),
VERSION, RELEASE);
else if (strcmp(argv[i], "--help") == 0) showHelp();
else if (strcmp(argv[i], "-record") == 0) {recordMode = REPLAY_MODE::RECORD; strlcpy(replayData.filename, argv[++i], sizeof replayData.filename);}
else if (strcmp(argv[i], "-playback") == 0) {recordMode = REPLAY_MODE::PLAYBACK; strlcpy(replayData.filename, argv[++i], sizeof replayData.filename);}
- else if (strcmp(argv[i], "-map") == 0) {game.setMapName(argv[++i]); requiredSection = SECTION_GAME;}
+ else if (strcmp(argv[i], "-map") == 0) {if (argc > i + 1) {game.setMapName(argv[++i]); requiredSection = SECTION_GAME;}}
else if (strcmp(argv[i], "-listmaps") == 0) listMaps();
else if (strcmp(argv[i], "-credits") == 0) requiredSection = SECTION_CREDITS;