From 02696b1cbeaa718eb29f2552992d68b1915c81b5 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 14 Aug 2012 15:27:30 +0100 Subject: [PATCH] Snap stamp selection to CELL res, #104 --- src/game/GameView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index 80c877221..8b553b960 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -953,7 +953,7 @@ void GameView::OnMouseMove(int x, int y, int dx, int dy) if(selectMode==PlaceSave) selectPoint1 = ui::Point(x, y); if(selectPoint1.X!=-1) - selectPoint2 = ui::Point(x, y); + selectPoint2 = c->NormaliseBlockCoord(ui::Point(x, y)); return; } currentMouse = ui::Point(x, y); @@ -970,7 +970,7 @@ void GameView::OnMouseDown(int x, int y, unsigned button) { if(button==BUTTON_LEFT) { - selectPoint1 = ui::Point(x, y); + selectPoint1 = c->NormaliseBlockCoord(ui::Point(x, y)); selectPoint2 = selectPoint1; } return;