From: Côme BERNIGAUD Date: Mon, 14 Feb 2011 14:36:00 +0000 (+0100) Subject: optimizing LoadLevel(int which) X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=ab6914764793b00eb6be0e3a939517636e4b5c3a;p=lugaru.git optimizing LoadLevel(int which) --- 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"); }