# HG changeset patch # User Darkvater # Date 1142291601 0 # Node ID d151574ef3cf5baaf020c15e216847a3b1c9f5d7 # Parent 5ac5072bf4b683f73f34d16eaf4a3e2a1a35f044 (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. diff -r 5ac5072bf4b6 -r d151574ef3cf misc_gui.c --- a/misc_gui.c Mon Mar 13 23:10:02 2006 +0000 +++ b/misc_gui.c Mon Mar 13 23:13:21 2006 +0000 @@ -1745,7 +1745,11 @@ 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);