diff --git a/geometry.cpp b/geometry.cpp index a8288830..78e01363 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -497,8 +497,10 @@ void check_cgi() { floor_textures = NULL; } + #if MAXMDIM >= 4 if(!floor_textures && DIM == 3 && (cgi.state & 2)) make_floor_textures(); + #endif }