shithub: choc

Download patch

ref: f4979b794bf64ffbcac164032d0e7d85b6072c58
parent: f8dacfd9684438959ea3f17b8fe379fa1359ec35
author: Simon Howard <[email protected]>
date: Wed Mar 1 15:02:53 EST 2006

Send the nomonsters flag on netgame start.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 401

--- a/src/net_client.c
+++ b/src/net_client.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: net_client.c 398 2006-02-27 20:11:14Z fraggle $
+// $Id: net_client.c 401 2006-03-01 20:02:53Z fraggle $
 //
 // Copyright(C) 2005 Simon Howard
 //
@@ -462,6 +462,7 @@
     settings.map = startmap;
     settings.skill = startskill;
     settings.gameversion = gameversion;
+    settings.nomonsters = nomonsters;
 
     i = M_CheckParm("-extratics");
 
@@ -659,6 +660,7 @@
     startmap = settings.map;
     startskill = settings.skill;
     lowres_turn = settings.lowres_turn;
+    nomonsters = settings.nomonsters;
 
     memset(recvwindow, 0, sizeof(recvwindow));
     recvwindow_start = 0;
--- a/src/net_defs.h
+++ b/src/net_defs.h
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: net_defs.h 394 2006-02-27 16:31:08Z fraggle $
+// $Id: net_defs.h 401 2006-03-01 20:02:53Z fraggle $
 //
 // Copyright(C) 2005 Simon Howard
 //
@@ -174,6 +174,7 @@
     int extratics;
     int deathmatch;
     int episode;
+    int nomonsters;
     int map;
     int skill;
     int gameversion;