commit e0d4e888e101115086df23a011ffe05b6a553bd4
parent 486dd04df7da8b617f86dbebe3d23f0218520291
Author: Michael Savage <mikejsavage@gmail.com>
Date: Tue, 21 Nov 2017 21:07:56 +0200
Does need to be >= when placing trim
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/clipmap.cc b/clipmap.cc
@@ -802,9 +802,8 @@ GAME_FRAME( game_frame ) {
v2 d = game->pos.xy() - next_snapped_pos;
u32 r = 0;
- // TODO: check > vs >=
- r |= d.x > scale ? 0 : 2;
- r |= d.y > scale ? 0 : 1;
+ r |= d.x >= scale ? 0 : 2;
+ r |= d.y >= scale ? 0 : 1;
v2 tile_centre = snapped_pos + v2( scale * 0.5f );
render_state.uniforms[ UNIFORMS_MODEL ] = rotation_uniforms[ r ];