changeset 149:13b2a2cd4552

26.11.12
author Ritor1
date Mon, 26 Nov 2012 09:35:10 +0600
parents 96ab6bba8408
children 20c034b5a6e2
files Render.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Render.cpp	Wed Nov 21 09:26:49 2012 +0600
+++ b/Render.cpp	Mon Nov 26 09:35:10 2012 +0600
@@ -1850,11 +1850,11 @@
               v13 = v8->vWorldPosition.y + 6.755399441055744e15,
               sY = LODWORD(v13),
               thisd = (v10->vWorldPosition.x + v8->vWorldPosition.x) * 0.5,
-              v14 = WorldPosToGridCellX(COERCE_UNSIGNED_INT64(thisd + 6.755399441055744e15)),
+              v14 = WorldPosToGridCellX(floorf(thisd + 0.5f)),
               v15 = v9->vWorldPosition.y + v8->vWorldPosition.y,
               v89 = v14,
               thise = v15 * 0.5,
-              _this = (LightmapBuilder *)WorldPosToGridCellZ(COERCE_UNSIGNED_INT64(thise + 6.755399441055744e15)),
+              _this = (LightmapBuilder *)WorldPosToGridCellX(floorf(thise + 0.5f)),
               WorldPosToGridCellX(sX),
               WorldPosToGridCellZ(sY),
               !byte_4D864C)