diff options
Diffstat (limited to 'src/object.cpp')
-rw-r--r-- | src/object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.cpp b/src/object.cpp index 08564908..e7583463 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -126,7 +126,7 @@ fm_UNROLL_2 auto& off = off_new[i]; auto sign = Math::sign(off); auto absval = Math::abs(off); - if (absval > half_tile[i]) + if (off >= half_tile[i]-1 || off < half_tile[i]) { tiles[i] += sign; off = (tile_size[i] - absval)*-sign; |