From 7ecbcd308c01d3a525d8bc924012a0597c28ad37 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sun, 28 Feb 2010 22:25:31 +0000 Subject: [PATCH] Some tabs had snuck in --- src/Main.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Main.cpp b/src/Main.cpp index ac8203b..e7aa188 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -109,12 +109,12 @@ int main(int argc, char** argv) parseOptions(argc, argv); cout << PACKAGE << " " << VERSION << "." << PATCH << endl << endl - << "Copyright (C) 2009-2010 Nick Gasson" << endl - << "This program comes with ABSOLUTELY NO WARRANTY. " - << "This is free software, and" << endl - << "you are welcome to redistribute it under certain conditions. " - << "See the GNU" << endl - << "General Public Licence for details." << endl << endl; + << "Copyright (C) 2009-2010 Nick Gasson" << endl + << "This program comes with ABSOLUTELY NO WARRANTY. " + << "This is free software, and" << endl + << "you are welcome to redistribute it under certain conditions. " + << "See the GNU" << endl + << "General Public Licence for details." << endl << endl; log() << "Program started"; @@ -122,7 +122,7 @@ int main(int argc, char** argv) try { if (::action == "" || ::mapFile == "") - throw runtime_error("Usage: TrainGame (edit|play) [map]"); + throw runtime_error("Usage: TrainGame (edit|play) [map]"); initResources(); @@ -132,21 +132,21 @@ int main(int argc, char** argv) IScreenPtr screen; if (::action == "edit") { - if (resourceExists(mapFile, "maps")) - screen = makeEditorScreen(loadMap(::mapFile)); - else { - screen = makeEditorScreen( + if (resourceExists(mapFile, "maps")) + screen = makeEditorScreen(loadMap(::mapFile)); + else { + screen = makeEditorScreen( makeEmptyMap(::mapFile, ::newMapWidth, ::newMapHeight)); - } + } } else if (::action == "play") { - screen = makeGameScreen(loadMap(::mapFile)); + screen = makeGameScreen(loadMap(::mapFile)); } else if (::action == "uidemo") { - screen = makeUIDemo(); + screen = makeUIDemo(); } else - throw runtime_error("Unrecognised command: " + ::action); + throw runtime_error("Unrecognised command: " + ::action); ::window->run(screen); -- 2.39.2