X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSkeleton.cpp;h=5b28f738f4ac8cfcea8429e8fb0d8d5366e27271;hb=bbf8873b80baf3cb468ac12b3f62b0938320fef1;hp=8d4247bae71b5d9341aaab96dce3da4e7a25ff93;hpb=7a0b90b30144f63105f6efd8f0d969862934b046;p=lugaru.git diff --git a/Source/Skeleton.cpp b/Source/Skeleton.cpp index 8d4247b..5b28f73 100644 --- a/Source/Skeleton.cpp +++ b/Source/Skeleton.cpp @@ -31,7 +31,6 @@ extern Skeleton testskeleton; extern Terrain terrain; extern Objects objects; extern int environment; -extern float terraindetail; extern float camerashake; extern bool freeze; extern int detail; @@ -194,8 +193,8 @@ float Skeleton::DoConstraints(XYZ *coords,float *scale) if(free){ freetime+=multiplier; - whichpatchx=coords->x/(terrain.size/subdivision*terrain.scale*terraindetail); - whichpatchz=coords->z/(terrain.size/subdivision*terrain.scale*terraindetail); + whichpatchx=coords->x/(terrain.size/subdivision*terrain.scale); + whichpatchz=coords->z/(terrain.size/subdivision*terrain.scale); terrainlight=*coords; objects.SphereCheckPossible(&terrainlight, 1);