# HG changeset patch # User Ritor1 # Date 1353900910 -21600 # Node ID 13b2a2cd4552d8740459ac61a2b276f274e4d58e # Parent 96ab6bba84082e5eb4bae4d5fe5e178c79b528ee 26.11.12 diff -r 96ab6bba8408 -r 13b2a2cd4552 Render.cpp --- 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)