summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2010-12-10 22:21:56 +0000
committerSimon Howard2010-12-10 22:21:56 +0000
commitc7b77349a83c70ce50acae28d1ed3606cdbb8ba9 (patch)
treebae1ca598a31219e94fd2406dd177baed6b1852c
parentd82620a41d8b7655fddb6e4de8cd60be1adf79e6 (diff)
downloadchocolate-doom-c7b77349a83c70ce50acae28d1ed3606cdbb8ba9.tar.gz
chocolate-doom-c7b77349a83c70ce50acae28d1ed3606cdbb8ba9.tar.bz2
chocolate-doom-c7b77349a83c70ce50acae28d1ed3606cdbb8ba9.zip
Remove "Error:" from the message displayed by I_Error, to match Vanilla.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2210
-rw-r--r--NEWS5
-rw-r--r--src/i_system.c6
-rw-r--r--src/net_gui.c2
3 files changed, 9 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index d9660f2f..8ade803d 100644
--- a/NEWS
+++ b/NEWS
@@ -45,6 +45,11 @@
* The HacX v1.2 IWAD file is now supported, and can be used
standalone without the need for the Doom II IWAD (thanks
atyth).
+ * The I_Error function doesn't display "Error:" before the error
+ message, matching the Vanilla behavior. "Error" has also been
+ removed from the title of the dialog box that appears on
+ Windows when this happens. This is desirable as not all such
+ messages are actually errors (thanks Proteh).
Bugs fixed:
* A workaround has been a bug in old versions of SDL_mixer
diff --git a/src/i_system.c b/src/i_system.c
index f37b5bec..aa7875ff 100644
--- a/src/i_system.c
+++ b/src/i_system.c
@@ -328,9 +328,9 @@ void I_Error (char *error, ...)
// Message first.
va_start(argptr, error);
- fprintf(stderr, "\nError: ");
+ //fprintf(stderr, "\nError: ");
vfprintf(stderr, error, argptr);
- fprintf(stderr, "\n");
+ fprintf(stderr, "\n\n");
va_end(argptr);
fflush(stderr);
@@ -360,7 +360,7 @@ void I_Error (char *error, ...)
msgbuf, strlen(msgbuf) + 1,
wmsgbuf, sizeof(wmsgbuf));
- MessageBoxW(NULL, wmsgbuf, L"Error", MB_OK);
+ MessageBoxW(NULL, wmsgbuf, L"" PACKAGE_NAME, MB_OK);
}
#endif
diff --git a/src/net_gui.c b/src/net_gui.c
index ed9a58e9..600b6ee8 100644
--- a/src/net_gui.c
+++ b/src/net_gui.c
@@ -284,7 +284,7 @@ void NET_WaitForStart(void)
if (!net_client_connected)
{
- I_Error("Disconnected from server");
+ I_Error("Lost connection to server");
}
TXT_Sleep(100);