diff options
author | Darkvater <darkvater@openttd.org> | 2005-12-13 21:21:57 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-12-13 21:21:57 +0000 |
commit | 56998926e7b1e8f93460b6c0cc826479b4f465e5 (patch) | |
tree | 641d3c568019ae2e01d4e7be32c3754de9e2c2ee /settings_gui.c | |
parent | 2a60262c99e1236db2019f470e4e39c72d4a9857 (diff) | |
download | openttd-56998926e7b1e8f93460b6c0cc826479b4f465e5.tar.xz |
(svn r3294) - Fix: use INVALID_STRING_ID instead of -1.
- Fix: savegames only give back one message, show this by ignoring the first argument. Perhaps make the message more verbose in the future by adding STR_ equivalents next to the already existing debug messages.
Diffstat (limited to 'settings_gui.c')
-rw-r--r-- | settings_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/settings_gui.c b/settings_gui.c index 1c6dd1cbb..319d1a5c8 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -562,13 +562,13 @@ static int32 v_PositionMainToolbar(int32 p1) static int32 AiNew_PatchActive_Warning(int32 p1) { - if (p1 == 1) ShowErrorMessage(-1, TEMP_AI_ACTIVATED, 0, 0); + if (p1 == 1) ShowErrorMessage(INVALID_STRING_ID, TEMP_AI_ACTIVATED, 0, 0); return 0; } static int32 Ai_In_Multiplayer_Warning(int32 p1) { - if (p1 == 1) ShowErrorMessage(-1, TEMP_AI_MULTIPLAYER, 0, 0); + if (p1 == 1) ShowErrorMessage(INVALID_STRING_ID, TEMP_AI_MULTIPLAYER, 0, 0); return 0; } @@ -617,7 +617,7 @@ static int32 CheckInterval(int32 p1) } if (!warning) - ShowErrorMessage(-1, STR_CONFIG_PATCHES_SERVICE_INTERVAL_INCOMPATIBLE, 0, 0); + ShowErrorMessage(INVALID_STRING_ID, STR_CONFIG_PATCHES_SERVICE_INTERVAL_INCOMPATIBLE, 0, 0); return InValidateDetailsWindow(0); } |