diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/din/din.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/din/din.c b/src/libs/din/din.c index 1cb0b97..481c5a5 100644 --- a/src/libs/din/din.c +++ b/src/libs/din/din.c @@ -113,9 +113,9 @@ float din(const din_t *din, v3f_t *coordinate) coordinate->y = .5f + (coordinate->y * .5f + .5f) * (float)(din->height - 2); coordinate->z = .5f + (coordinate->z * .5f + .5f) * (float)(din->depth - 2); - x0 = floorf(coordinate->x); - y0 = floorf(coordinate->y); - z0 = floorf(coordinate->z); + x0 = coordinate->x; + y0 = coordinate->y; + z0 = coordinate->z; x1 = x0 + 1; y1 = y0 + 1; |