From: Perttu Ahola Date: Sat, 23 Apr 2011 15:53:39 +0000 (+0300) Subject: tuned error reporting a bit X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=ea69a49a7ba040a2e197ae2bbe5ac31f6738a3ba;p=zefram%2Fminetest%2Fminetest_engine.git tuned error reporting a bit --- diff --git a/src/main.cpp b/src/main.cpp index dd8d5d7d..5349310d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1248,18 +1248,18 @@ int main(int argc, char *argv[]) GUI stuff */ + /* + If an error occurs, this is set to something and the + menu-game loop is restarted. It is then displayed before + the menu. + */ + std::wstring error_message = L""; + /* Menu-game loop */ while(device->run() && kill == false) { - /* - If an error occurs, this is set to something and the - menu-game loop is restarted. It is then displayed before - the menu. - */ - std::wstring error_message = L""; - // This is used for catching disconnects try { @@ -1404,6 +1404,21 @@ int main(int argc, char *argv[]) dstream<