diff options
author | ludde <ludde@openttd.org> | 2005-07-14 09:43:59 +0000 |
---|---|---|
committer | ludde <ludde@openttd.org> | 2005-07-14 09:43:59 +0000 |
commit | 3e62457107457c8295076370425e9a1df44fa58c (patch) | |
tree | f6981bd89e076320ae37ab99f9dbf0619bca554c /openttd.c | |
parent | 1a046ff4c6f0295328ccc0cd6a4cd7a491f7ddbf (diff) | |
download | openttd-3e62457107457c8295076370425e9a1df44fa58c.tar.xz |
(svn r2564) Fix: Fixed conceptual issue in network_gui.c. AllocateName is not meant to be used by GUI-code, because it modifies the "game-state".
Added a way to bind a C-string to an openttd string which doesn't modify the game state.
Diffstat (limited to 'openttd.c')
-rw-r--r-- | openttd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -738,7 +738,7 @@ int ttd_main(int argc, char* argv[]) static void ShowScreenshotResult(bool b) { if (b) { - SetDParam(0, STR_SPEC_SCREENSHOT_NAME); + SetDParamStr(0, _screenshot_name); ShowErrorMessage(INVALID_STRING_ID, STR_031B_SCREENSHOT_SUCCESSFULLY, 0, 0); } else { ShowErrorMessage(INVALID_STRING_ID, STR_031C_SCREENSHOT_FAILED, 0, 0); |