@@ -290,33 +290,33 @@ struct CheatWindow : Window {
/* The first cheat (money), doesn't return a different value. */
if (value != oldvalue || btn == 0) this->clicked = btn * 2 + 1 + ((x >= 30) ? 1 : 0);
break;
}
if (value != oldvalue) WriteValue(ce->variable, ce->type, (int64)value);
this->flags4 |= WF_TIMEOUT_BEGIN;
SetDirty();
virtual void OnTimeout()
{
this->clicked = 0;
this->SetDirty();
};
static const WindowDesc _cheats_desc(
240, 22, 0, 0, 0, 0,
WC_CHEATS, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
NULL, _nested_cheat_widgets, lengthof(_nested_cheat_widgets)
_nested_cheat_widgets, lengthof(_nested_cheat_widgets)
);
void ShowCheatWindow()
DeleteWindowById(WC_CHEATS, 0);
new CheatWindow(&_cheats_desc);