summaryrefslogtreecommitdiff
path: root/src/g_game.c
diff options
context:
space:
mode:
authorSimon Howard2005-12-30 18:58:22 +0000
committerSimon Howard2005-12-30 18:58:22 +0000
commit75270ad54ac92830f43b4bcaa088fdf65c5acc83 (patch)
tree969fdfaf788dbd0920a4f291ee2cf55ac5b6e3a2 /src/g_game.c
parent694292fa55e926ca4d7be4a26bd55a9faa41a589 (diff)
downloadchocolate-doom-75270ad54ac92830f43b4bcaa088fdf65c5acc83.tar.gz
chocolate-doom-75270ad54ac92830f43b4bcaa088fdf65c5acc83.tar.bz2
chocolate-doom-75270ad54ac92830f43b4bcaa088fdf65c5acc83.zip
Fix client code to correctly send reply to server on connection.
Add "waiting screen" while waiting for the game to start. Hook in the new networking code into the main game code. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 235
Diffstat (limited to 'src/g_game.c')
-rw-r--r--src/g_game.c23
1 files changed, 20 insertions, 3 deletions
diff --git a/src/g_game.c b/src/g_game.c
index 91b86991..de4770fb 100644
--- a/src/g_game.c
+++ b/src/g_game.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: g_game.c 206 2005-10-17 20:27:05Z fraggle $
+// $Id: g_game.c 235 2005-12-30 18:58:22Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,11 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.17 2005/12/30 18:58:22 fraggle
+// Fix client code to correctly send reply to server on connection.
+// Add "waiting screen" while waiting for the game to start.
+// Hook in the new networking code into the main game code.
+//
// Revision 1.16 2005/10/17 20:27:05 fraggle
// Start of Dehacked 'Misc' section support. Initial Health+Bullets,
// and bfg cells/shot are supported.
@@ -89,7 +94,7 @@
static const char
-rcsid[] = "$Id: g_game.c 206 2005-10-17 20:27:05Z fraggle $";
+rcsid[] = "$Id: g_game.c 235 2005-12-30 18:58:22Z fraggle $";
#include <string.h>
#include <stdlib.h>
@@ -100,6 +105,8 @@ rcsid[] = "$Id: g_game.c 206 2005-10-17 20:27:05Z fraggle $";
#include "deh_main.h"
#include "deh_misc.h"
+#include "net_gui.h"
+
#include "z_zone.h"
#include "f_finale.h"
#include "m_argv.h"
@@ -639,6 +646,13 @@ boolean G_Responder (event_t* ev)
}
return false;
}
+
+ // waiting for a network game to start
+
+ if (gamestate == GS_WAITINGSTART)
+ {
+ return NET_Responder(ev);
+ }
if (gamestate == GS_LEVEL)
{
@@ -851,7 +865,10 @@ void G_Ticker (void)
case GS_DEMOSCREEN:
D_PageTicker ();
- break;
+ break;
+
+ case GS_WAITINGSTART:
+ break;
}
}