]> git.jsancho.org Git - lugaru.git/commitdiff
Set Terrain scale to 1.0f by default so we avoid a division by zero.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 1 Nov 2009 03:37:42 +0000 (23:37 -0400)
committerRyan C. Gordon <icculus@icculus.org>
Sun, 1 Nov 2009 03:37:42 +0000 (23:37 -0400)
Source/Terrain.cpp

index a102e523f4c86cfaa235e873dff77e2ad26e521d..b3ea6a02e5c4384b46e87013a15769b2bc852776 100644 (file)
@@ -1495,7 +1495,7 @@ Terrain::Terrain()
        memset(patchobjectnum, 0, sizeof(patchobjectnum));
        memset(patchobjects, 0, sizeof(patchobjects));
 
-       scale = 0;
+       scale = 1.0f;
        type = 0;
        memset(heightmap, 0, sizeof(heightmap));
        memset(normals, 0, sizeof(normals));