From ab6914764793b00eb6be0e3a939517636e4b5c3a Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20BERNIGAUD?= Date: Mon, 14 Feb 2011 15:36:00 +0100 Subject: [PATCH] optimizing LoadLevel(int which) --- Source/GameTick.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index 05bb4ce..4aead8d 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -1406,14 +1406,14 @@ void Game::Loadlevel(int which){ stealthloading=0; whichlevel=which; - if (which == -1) { + if(which == -1){ tutoriallevel = -1; Loadlevel("tutorial"); - } else if (which >= 0 && which <= 15) { + }else if(which >= 0 && which <= 15){ char buf[32]; snprintf(buf, 32, "map%d", which + 1); Loadlevel(buf); - } else + }else Loadlevel("mapsave"); } -- 2.39.5