]> git.jsancho.org Git - lugaru.git/commitdiff
optimizing LoadLevel(int which)
authorCôme BERNIGAUD <come.bernigaud@laposte.net>
Mon, 14 Feb 2011 14:36:00 +0000 (15:36 +0100)
committerCôme BERNIGAUD <come.bernigaud@laposte.net>
Mon, 14 Feb 2011 14:36:00 +0000 (15:36 +0100)
Source/GameTick.cpp

index 05bb4ce08dd6c9f5430d30e2b019d5c6fcb7700d..4aead8d5b959ea169e0828e75fc82e2e23af1d1f 100644 (file)
@@ -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");
 }