shithub: choc

Download patch

ref: 8b08253a0da0d081348c8755ec8a07977726de2b
parent: 915053b5e7a885dbc6be6f150455eb153cc41309
author: Simon Howard <[email protected]>
date: Thu Feb 23 13:19:05 EST 2006

Add lowres_turn parameter to net_full_ticcmd_t structure r/w functions

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

--- a/src/net_defs.h
+++ b/src/net_defs.h
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: net_defs.h 370 2006-02-17 20:15:16Z fraggle $
+// $Id: net_defs.h 376 2006-02-23 18:19:05Z fraggle $
 //
 // Copyright(C) 2005 Simon Howard
 //
@@ -21,6 +21,9 @@
 // 02111-1307, USA.
 //
 // $Log$
+// Revision 1.14  2006/02/23 18:19:05  fraggle
+// Add lowres_turn parameter to net_full_ticcmd_t structure r/w functions
+//
 // Revision 1.13  2006/02/17 20:15:16  fraggle
 // Request resends for missed packets
 //
@@ -176,6 +179,7 @@
     int map;
     int skill;
     int gameversion;
+    int lowres_turn;
 } net_gamesettings_t;
 
 #define NET_TICDIFF_FORWARD      (1 << 0)
--- a/src/net_structrw.c
+++ b/src/net_structrw.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: net_structrw.c 369 2006-02-16 01:12:28Z fraggle $
+// $Id: net_structrw.c 376 2006-02-23 18:19:05Z fraggle $
 //
 // Copyright(C) 2005 Simon Howard
 //
@@ -21,6 +21,9 @@
 // 02111-1307, USA.
 //
 // $Log$
+// Revision 1.7  2006/02/23 18:19:05  fraggle
+// Add lowres_turn parameter to net_full_ticcmd_t structure r/w functions
+//
 // Revision 1.6  2006/02/16 01:12:28  fraggle
 // Define a new type net_full_ticcmd_t, a structure containing all ticcmds
 // for a given tic.  Store received game data in a receive window.  Add
@@ -225,7 +228,7 @@
 // net_full_ticcmd_t
 // 
 
-boolean NET_ReadFullTiccmd(net_packet_t *packet, net_full_ticcmd_t *cmd)
+boolean NET_ReadFullTiccmd(net_packet_t *packet, net_full_ticcmd_t *cmd, boolean lowres_turn)
 {
     unsigned int bitfield;
     int i;
@@ -248,7 +251,7 @@
     {
         if (cmd->playeringame[i])
         {
-            if (!NET_ReadTiccmdDiff(packet, &cmd->cmds[i], false))
+            if (!NET_ReadTiccmdDiff(packet, &cmd->cmds[i], lowres_turn))
             {
                 return false;
             }
@@ -258,7 +261,7 @@
     return true;
 }
 
-void NET_WriteFullTiccmd(net_packet_t *packet, net_full_ticcmd_t *cmd)
+void NET_WriteFullTiccmd(net_packet_t *packet, net_full_ticcmd_t *cmd, boolean lowres_turn)
 {
     unsigned int bitfield;
     int i;
@@ -284,7 +287,7 @@
     {
         if (cmd->playeringame[i])
         {
-            NET_WriteTiccmdDiff(packet, &cmd->cmds[i], false);
+            NET_WriteTiccmdDiff(packet, &cmd->cmds[i], lowres_turn);
         }
     }
 }
--- a/src/net_structrw.h
+++ b/src/net_structrw.h
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: net_structrw.h 369 2006-02-16 01:12:28Z fraggle $
+// $Id: net_structrw.h 376 2006-02-23 18:19:05Z fraggle $
 //
 // Copyright(C) 2005 Simon Howard
 //
@@ -21,6 +21,9 @@
 // 02111-1307, USA.
 //
 // $Log$
+// Revision 1.5  2006/02/23 18:19:05  fraggle
+// Add lowres_turn parameter to net_full_ticcmd_t structure r/w functions
+//
 // Revision 1.4  2006/02/16 01:12:28  fraggle
 // Define a new type net_full_ticcmd_t, a structure containing all ticcmds
 // for a given tic.  Store received game data in a receive window.  Add
@@ -55,8 +58,8 @@
 extern void NET_TiccmdDiff(ticcmd_t *tic1, ticcmd_t *tic2, net_ticdiff_t *diff);
 extern void NET_TiccmdPatch(ticcmd_t *src, net_ticdiff_t *diff, ticcmd_t *dest);
 
-boolean NET_ReadFullTiccmd(net_packet_t *packet, net_full_ticcmd_t *cmd);
-void NET_WriteFullTiccmd(net_packet_t *packet, net_full_ticcmd_t *cmd);
+boolean NET_ReadFullTiccmd(net_packet_t *packet, net_full_ticcmd_t *cmd, boolean lowres_turn);
+void NET_WriteFullTiccmd(net_packet_t *packet, net_full_ticcmd_t *cmd, boolean lowres_turn);
 
 
 #endif /* #ifndef NET_STRUCTRW_H */