diff options
author | glx <glx@openttd.org> | 2008-06-05 20:54:52 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-06-05 20:54:52 +0000 |
commit | ee256e770afb5f04a6a10f3b2045dd426d3167ff (patch) | |
tree | 62bef57de81c1ddcc691d5de5e8db395615bdacc /src/os2.cpp | |
parent | 5176319dd5145138604dd48c44b056693d900b10 (diff) | |
download | openttd-ee256e770afb5f04a6a10f3b2045dd426d3167ff.tar.xz |
(svn r13390) -Codechange: introduce usererror() for fatal but not openttd related errors. Now all error() will 'crash' openttd after showing the message in win32 releases (MSVC), creating a crash.log and crash.dmp (like the '!' hack used before). On the other hand, usererror() will just close the game. So use error() only when it can be helpful to debugging, else use usererror().
Diffstat (limited to 'src/os2.cpp')
-rw-r--r-- | src/os2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os2.cpp b/src/os2.cpp index 3e54bb5ad..d57708e31 100644 --- a/src/os2.cpp +++ b/src/os2.cpp @@ -145,7 +145,7 @@ void ShowInfo(const char *str) WinTerminate(hab); } -void ShowOSErrorBox(const char *buf) +void ShowOSErrorBox(const char *buf, bool system) { HAB hab; HMQ hmq; |