summaryrefslogtreecommitdiff
path: root/src/game/GameController.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-06 23:51:14 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-06 23:51:14 (GMT)
commit58fa3dd539ad0ee7ebb44ec68515bdc22956c095 (patch)
tree92c771e3c5f06d5750aa7ee4abb575ae1ed36327 /src/game/GameController.cpp
parent76477e1b46b5ca46ba6ddd42ad9a533c86c29e5d (diff)
downloadpowder-58fa3dd539ad0ee7ebb44ec68515bdc22956c095.zip
powder-58fa3dd539ad0ee7ebb44ec68515bdc22956c095.tar.gz
Fix some off-by-one mouse clamping issues
Diffstat (limited to 'src/game/GameController.cpp')
-rw-r--r--src/game/GameController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index aecdeaf..59e1e34 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -341,7 +341,7 @@ ui::Point GameController::PointTranslate(ui::Point point)
if(point.X >= XRES)
point.X = XRES-1;
if(point.Y >= YRES)
- point.Y = YRES+1;
+ point.Y = YRES-1;
if(point.Y < 0)
point.Y = 0;
if(point.X < 0)