]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Environment/Terrain.cpp
Moved things related to tutorial in new Tutorial class
[lugaru.git] / Source / Environment / Terrain.cpp
index 806bb4be7541b30f4f5b0cda08011ac5451db80d..98828fdef1573de01f9c2fab6967e5911babbed1 100644 (file)
@@ -23,6 +23,7 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #include "Game.hpp"
 #include "Objects/Object.hpp"
 #include "Utils/Folders.hpp"
+#include "Tutorial.hpp"
 
 extern XYZ viewer;
 extern float viewdistance;
@@ -39,7 +40,6 @@ extern float blurness;
 extern float targetblurness;
 extern bool visibleloading;
 extern bool skyboxtexture;
-extern int tutoriallevel;
 
 //Functions
 
@@ -1366,7 +1366,7 @@ void Terrain::DoShadows()
         lightloc.x = 0;
         lightloc.z = 0;
     }
-    if (skyboxtexture && tutoriallevel) {
+    if (skyboxtexture && Tutorial::active) {
         lightloc.x *= .4;
         lightloc.z *= .4;
     }