diff options
author | Simon Howard | 2006-02-23 18:19:05 +0000 |
---|---|---|
committer | Simon Howard | 2006-02-23 18:19:05 +0000 |
commit | 8b08253a0da0d081348c8755ec8a07977726de2b (patch) | |
tree | 0da11be28c0b03cef4cc450bf24fe15665a47457 | |
parent | 915053b5e7a885dbc6be6f150455eb153cc41309 (diff) | |
download | chocolate-doom-8b08253a0da0d081348c8755ec8a07977726de2b.tar.gz chocolate-doom-8b08253a0da0d081348c8755ec8a07977726de2b.tar.bz2 chocolate-doom-8b08253a0da0d081348c8755ec8a07977726de2b.zip |
Add lowres_turn parameter to net_full_ticcmd_t structure r/w functions
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 376
-rw-r--r-- | src/net_defs.h | 6 | ||||
-rw-r--r-- | src/net_structrw.c | 13 | ||||
-rw-r--r-- | src/net_structrw.h | 9 |
3 files changed, 19 insertions, 9 deletions
diff --git a/src/net_defs.h b/src/net_defs.h index 9dc12d8d..ee6c790d 100644 --- 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 @@ typedef struct int map; int skill; int gameversion; + int lowres_turn; } net_gamesettings_t; #define NET_TICDIFF_FORWARD (1 << 0) diff --git a/src/net_structrw.c b/src/net_structrw.c index f57a9091..ec5a61b5 100644 --- 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 @@ void NET_TiccmdPatch(ticcmd_t *src, net_ticdiff_t *diff, ticcmd_t *dest) // 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 @@ boolean NET_ReadFullTiccmd(net_packet_t *packet, net_full_ticcmd_t *cmd) { 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 @@ boolean NET_ReadFullTiccmd(net_packet_t *packet, net_full_ticcmd_t *cmd) 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 @@ void NET_WriteFullTiccmd(net_packet_t *packet, net_full_ticcmd_t *cmd) { if (cmd->playeringame[i]) { - NET_WriteTiccmdDiff(packet, &cmd->cmds[i], false); + NET_WriteTiccmdDiff(packet, &cmd->cmds[i], lowres_turn); } } } diff --git a/src/net_structrw.h b/src/net_structrw.h index 5f458445..6f8ec59b 100644 --- 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 boolean NET_ReadTiccmdDiff(net_packet_t *packet, net_ticdiff_t *diff, boo 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 */ |