summaryrefslogtreecommitdiff
path: root/src/doom/d_net.c
diff options
context:
space:
mode:
authorSimon Howard2008-09-08 17:55:12 +0000
committerSimon Howard2008-09-08 17:55:12 +0000
commit3a41ade9fab0556d0d025c0b0e81834436a4f2e8 (patch)
tree0df9a93616e608a679c33e0c32de353cc93220ef /src/doom/d_net.c
parent0a5d1795ce8fe46e20627f8a7b4ba348f2ec400e (diff)
downloadchocolate-doom-3a41ade9fab0556d0d025c0b0e81834436a4f2e8.tar.gz
chocolate-doom-3a41ade9fab0556d0d025c0b0e81834436a4f2e8.tar.bz2
chocolate-doom-3a41ade9fab0556d0d025c0b0e81834436a4f2e8.zip
Remove i_system.c dependency on doom/ code and add a generic I_AtExit()
API for scheduling functions to call on quit. Subversion-branch: /branches/raven-branch Subversion-revision: 1216
Diffstat (limited to 'src/doom/d_net.c')
-rw-r--r--src/doom/d_net.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/doom/d_net.c b/src/doom/d_net.c
index 4e87a813..8f75fd06 100644
--- a/src/doom/d_net.c
+++ b/src/doom/d_net.c
@@ -237,6 +237,10 @@ void D_CheckNetGame (void)
int i;
int num_players;
+ // Call D_QuitNetGame on exit
+
+ I_AtExit(D_QuitNetGame, true);
+
// default values for single player
consoleplayer = 0;