From 0b2cd38e764ee62ea6d0ed9339e96e18fab0f773 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sun, 27 Jun 2010 10:35:46 +0100 Subject: [PATCH] Fix uidemo command --- src/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main.cpp b/src/Main.cpp index a7a2674..20fc959 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -95,7 +95,7 @@ int main(int argc, char** argv) log() << "Program started"; try { - if (::action == "" || ::map_file == "") + if (::action == "" || (::map_file == "" && ::action != "uidemo")) throw runtime_error("Usage: TrainGame (edit|play) [map]"); init_resources(); -- 2.39.2