summaryrefslogtreecommitdiff
path: root/src/gui/game/GameView.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-07-13 17:56:30 (GMT)
committer jacob1 <jfu614@gmail.com>2013-07-13 17:56:30 (GMT)
commit896dd03d25f823edc6611b9578245e1c821f73c8 (patch)
tree83f3f0c1e882f7a8624033d8178b9614ccad7831 /src/gui/game/GameView.cpp
parent728d201e9336ffa9b5c463b9686168579ffd75ca (diff)
downloadpowder-896dd03d25f823edc6611b9578245e1c821f73c8.zip
powder-896dd03d25f823edc6611b9578245e1c821f73c8.tar.gz
hitting the buttons on the bottom while pasting a stamp will cancel the paste (fixes stacking glitch)
Diffstat (limited to 'src/gui/game/GameView.cpp')
-rw-r--r--src/gui/game/GameView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp
index f58039e..b1d46d2 100644
--- a/src/gui/game/GameView.cpp
+++ b/src/gui/game/GameView.cpp
@@ -1070,7 +1070,7 @@ void GameView::OnMouseUp(int x, int y, unsigned button)
{
if(selectMode==PlaceSave)
{
- if(placeSaveThumb)
+ if(placeSaveThumb && y <= YRES+MENUSIZE-BARSIZE)
{
int thumbX = selectPoint2.X - (placeSaveThumb->Width/2);
int thumbY = selectPoint2.Y - (placeSaveThumb->Height/2);