Date:	Tuesday July 1, 2003 @ 7:56
Author:	xyzzy

Update of /home/netrek/cvsroot/Vanilla/ntserv
In directory swashbuckler.real-time.com:/var/tmp/cvs-serv29334

Modified Files:
	genspkt.c 
Log Message:
Added the visible tractor byte to old-style non-short self packets.


****************************************

Index: Vanilla/ntserv/genspkt.c
diff -u Vanilla/ntserv/genspkt.c:1.27 Vanilla/ntserv/genspkt.c:1.28
--- Vanilla/ntserv/genspkt.c:1.27	Tue Jul  1 07:54:58 2003
+++ Vanilla/ntserv/genspkt.c	Tue Jul  1 07:56:42 2003
@@ -1046,6 +1046,7 @@
 inline static int
 sndSelf(struct you_spacket* youp, struct player* pl, int howmuch)
 {
+    int tractor = (pl->p_flags&PFTRACT)?(char)(pl->p_tractor|0x40):0;
     if ( howmuch == UPDT_ALL
 	 || ntohl(youp->fuel) != pl->p_fuel
 	 || ntohl(youp->shield) != pl->p_shield
@@ -1057,6 +1058,7 @@
 	 || youp->swar != pl->p_swar
 	 || ntohs(youp->whydead) != pl->p_whydead
 	 || ntohs(youp->whodead) != pl->p_whodead
+	 || youp->tractor != tractor 
 	 || youp->pnum != pl->p_no) {
 
 	/* we want to send it, but how? */
@@ -1087,7 +1089,7 @@
 	youp->whydead=htons(pl->p_whydead);
 	youp->whodead=htons(pl->p_whodead);
 	youp->damage=htonl(pl->p_damage);
-	/* youp->tractor=(char)pl->p_tractor |0x40;		 ATM - visible tractor */
+	youp->tractor=tractor;
 	sendClientPacket((CVOID) youp);
 	return (TRUE);
     }

_______________________________________________
vanilla-devel mailing list
vanilla-devel at us.netrek.org
https://mailman.real-time.com/mailman/listinfo/vanilla-devel