summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-03-13 23:13:21 +0000
committerDarkvater <darkvater@openttd.org>2006-03-13 23:13:21 +0000
commit9773a2bcbe050ec8bad6e7935bc3eea8b7ab210f (patch)
tree898c3f52a2b45b6c4a1e39f31f14b4df6e68d889
parent9cbce0a46e7a9d4a9c80c4d9e2d5453d683ba3aa (diff)
downloadopenttd-9773a2bcbe050ec8bad6e7935bc3eea8b7ab210f.tar.xz
(svn r3853) - Fix a change of SetDParam64 to SetDParam in r3713 that caused slightly vibrating text when pressing the cheat-button. Thanks to peter1138 for noticing.
-rw-r--r--misc_gui.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c
index 45a4cefd6..492f34fcd 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -1745,7 +1745,11 @@ static void CheatsWndProc(Window *w, WindowEvent *e)
if (ce->flags & CE_CLICK) {
DrawFrameRect(x + 20, y + 1, x + 30 + 9, y + 9, 0, (clk - (i * 2) == 1) ? FR_LOWERED : 0);
- SetDParam(0, (i == 0) ? 10000000 : false);
+ if (i == 0) { // XXX - hack/hack for first element which is increase money. Told ya it's a mess
+ SetDParam64(0, 10000000);
+ } else {
+ SetDParam(0, false);
+ }
} else {
DrawFrameRect(x + 20, y + 1, x + 30 + 9, y + 9, on ? 6 : 4, on ? FR_LOWERED : 0);
SetDParam(0, on ? STR_CONFIG_PATCHES_ON : STR_CONFIG_PATCHES_OFF);