[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/network network.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/network network.c |
Date: |
1 Feb 2004 13:17:22 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/02/01 13:17:22
Modified files:
src/network : network.c
Log message:
Allow MessageQuit to be a valid command
Patches:
Index: stratagus/src/network/network.c
diff -u stratagus/src/network/network.c:1.129
stratagus/src/network/network.c:1.130
--- stratagus/src/network/network.c:1.129 Sun Feb 1 06:42:45 2004
+++ stratagus/src/network/network.c Sun Feb 1 13:17:21 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: network.c,v 1.129 2004/01/31 19:42:45 wizzard Exp $
+// $Id: network.c,v 1.130 2004/02/01 02:17:21 wizzard Exp $
//@{
@@ -898,13 +898,17 @@
NetworkLastFrame[player] = FrameCounter;
// Place in network in
- switch (packet->Header.Type[i]) {
+ switch (packet->Header.Type[i] & 0x7F) {
case MessageExtendedCommand:
// FIXME: ensure the sender is part of the
command
allowed = 1;
break;
case MessageSync:
// Sync does not matter
+ allowed = 1;
+ break;
+ case MessageQuit:
+ // FIXME: ensure it's from the right player
allowed = 1;
break;
default: