summaryrefslogtreecommitdiff
path: root/src/sv_main.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2011-02-23 19:24:16 +0300
committerAndrey Nazarov <skuller@skuller.net>2011-02-23 19:24:16 +0300
commite7b4367c5b243d9210fbd5df957fce6623dc40f0 (patch)
tree7ad9972b4bfc23d60ace7f2992330e61e156b569 /src/sv_main.c
parent639a1eac1f4313862c8809421dca89d39d7c3a2e (diff)
Get rid of killtype_t enum.
Diffstat (limited to 'src/sv_main.c')
-rw-r--r--src/sv_main.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/sv_main.c b/src/sv_main.c
index fbbcdde..54b30b3 100644
--- a/src/sv_main.c
+++ b/src/sv_main.c
@@ -1984,9 +1984,12 @@ static void SV_FinalMessage( const char *message, int cmd ) {
netchan_t *netchan;
int i;
- MSG_WriteByte( svc_print );
- MSG_WriteByte( PRINT_HIGH );
- MSG_WriteString( message );
+ if( message ) {
+ MSG_WriteByte( svc_print );
+ MSG_WriteByte( PRINT_HIGH );
+ MSG_WriteString( message );
+ }
+
MSG_WriteByte( cmd );
// send it twice
@@ -2023,7 +2026,7 @@ SV_Shutdown
Called when each game quits, from Com_Quit or Com_Error
================
*/
-void SV_Shutdown( const char *finalmsg, killtype_t type ) {
+void SV_Shutdown( const char *finalmsg, error_type_t type ) {
master_t *m;
Cvar_Set( "sv_running", "0" );
@@ -2045,7 +2048,7 @@ void SV_Shutdown( const char *finalmsg, killtype_t type ) {
SV_MvdShutdown( type );
#endif
- if( type == KILL_RESTART ) {
+ if( type == ERR_RECONNECT ) {
SV_FinalMessage( finalmsg, svc_reconnect );
} else {
SV_FinalMessage( finalmsg, svc_disconnect );