X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FEnvironment%2FTerrain.cpp;h=98828fdef1573de01f9c2fab6967e5911babbed1;hb=d177a567280631cd91a677debafada8cef7e0413;hp=806bb4be7541b30f4f5b0cda08011ac5451db80d;hpb=ce7c8b6c4db753fef7cf634a09aa63d8a4545c9b;p=lugaru.git diff --git a/Source/Environment/Terrain.cpp b/Source/Environment/Terrain.cpp index 806bb4b..98828fd 100644 --- a/Source/Environment/Terrain.cpp +++ b/Source/Environment/Terrain.cpp @@ -23,6 +23,7 @@ along with Lugaru. If not, see . #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; }