]> git.jsancho.org Git - lugaru.git/commitdiff
Tiny clean
authorCôme Chilliet <come@chilliet.eu>
Tue, 29 Nov 2016 16:09:16 +0000 (23:09 +0700)
committerCôme Chilliet <come@chilliet.eu>
Tue, 29 Nov 2016 16:09:16 +0000 (23:09 +0700)
Source/GameDraw.cpp

index 578e6f3f54c72aa6b8d717be26a9c925ef96396f..ae3c743802e4f709707d9d97392f0c9f13b56cbf 100644 (file)
@@ -82,7 +82,7 @@ extern XYZ hotspot[40];
 extern int hotspottype[40];
 extern float hotspotsize[40];
 extern char hotspottext[40][256];
-extern int currenthotspot;;
+extern int currenthotspot;
 
 extern bool campaign;
 extern bool winfreeze;
@@ -905,9 +905,8 @@ int Game::DrawGLScene(StereoSide side)
                         }
                     }
                 }
-                if (closest != -1)
+                if (closest != -1) {
                     currenthotspot = closest;
-                if (currenthotspot != -1) {
                     if (hotspottype[closest] <= 10) {
                         if (distsq(&Person::players[0]->coords, &hotspot[closest]) < hotspotsize[closest])
                             tutorialstagetime = 0;