Update of /cvsroot/netrek/client/netrekxp/include
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3525/include

Modified Files:
	data.h packets.h proto.h 
Log Message:
Support for F_check_planets feature packet, which includes new struct
planet_cpacket which cross-checks with server to make sure all planet
info is correct.  Updated 10 times/sec for planet being orbitted, and
every 5 seconds for the other "touched" planets.  Reduces need for
small update to refresh planets, and minimizes the effect of lost
planet packets on gameplay.

Index: data.h
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/include/data.h,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- data.h	4 Apr 2007 04:06:36 -0000	1.69
+++ data.h	4 Apr 2007 10:34:21 -0000	1.70
@@ -576,6 +576,7 @@
 extern int F_sp_generic_32;
 extern int F_full_direction_resolution;
 extern int F_full_weapon_resolution;
+extern int F_check_planets;
 extern int F_show_army_count;
 extern int F_show_other_speed;
 extern int F_show_cloakers;

Index: packets.h
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/include/packets.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- packets.h	18 Dec 2006 00:13:05 -0000	1.5
+++ packets.h	4 Apr 2007 10:34:21 -0000	1.6
@@ -175,6 +175,8 @@
                                  * verification */
 #endif
 
+#define CP_PLANET       38      /* cross-check planet info */
+
 #define CP_PING_RESPONSE 42     /* client response */
 
 #ifdef SHORT_PACKETS
@@ -426,6 +428,16 @@
     char pad2;
 };
 
+struct planet_cpacket
+{
+    char type;                  /* CP_PLANET */
+    char pnum;
+    char owner;
+    char info;
+    unsigned short flags;
+    int armies;
+};
+
 struct practr_cpacket
 {
     char type;                  /* CP_PRACTR */

Index: proto.h
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/include/proto.h,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- proto.h	1 Apr 2007 10:11:36 -0000	1.43
+++ proto.h	4 Apr 2007 10:34:21 -0000	1.44
@@ -1096,6 +1096,7 @@
 struct mask_spacket;
 void handleMask (struct mask_spacket *packet);
 void sendOptionsPacket (void);
+void sendPlanetsPacket (int pnum);
 void pickSocket (int old);
 struct badversion_spacket;
 void handleBadVersion (struct badversion_spacket *packet);