summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTTrebron <tr3bron@protonmail.com>2019-07-27 00:32:43 +0200
committerCharles Pigott <charlespigott@googlemail.com>2019-07-27 08:50:18 +0100
commit425cd3e4ca8cf6812bdf015c649a7bf4b76a71a1 (patch)
treed8e6443736647f7e4480fdeb552a7e8dc9c55d5c
parent2e686ad5d5cb3ae0a3e50b79050af74f672e7854 (diff)
downloadopenttd-425cd3e4ca8cf6812bdf015c649a7bf4b76a71a1.tar.xz
Fix #7655: Decrease buttons in cheat window do not work properly
-rw-r--r--src/cheat_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp
index 2cd8b90f0..3d338e91a 100644
--- a/src/cheat_gui.cpp
+++ b/src/cheat_gui.cpp
@@ -370,7 +370,7 @@ struct CheatWindow : Window {
default:
/* Take whatever the function returns */
- value = ce->proc(value + ((x >= 20 + SETTING_BUTTON_WIDTH / 2) ? 1 : -1), (x >= 10 + this->box_width + SETTING_BUTTON_WIDTH / 2) ? 1 : -1);
+ value = ce->proc(value + ((x >= 10 + this->box_width + SETTING_BUTTON_WIDTH / 2) ? 1 : -1), (x >= 10 + this->box_width + SETTING_BUTTON_WIDTH / 2) ? 1 : -1);
/* The first cheat (money), doesn't return a different value. */
if (value != oldvalue || btn == CHT_MONEY) this->clicked = btn * 2 + 1 + ((x >= 10 + this->box_width + SETTING_BUTTON_WIDTH / 2) != rtl ? 1 : 0);