Vanilla Development Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS update: Vanilla/ntserv



Date:	Saturday May 27, 2000 @ 4:46
Author:	jeffno

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

Modified Files:
	genspkt.c data.c data.h 
Log Message:
Added GALACTIC_SMOOTH sysdef option for hockey.

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

Index: Vanilla/ntserv/genspkt.c
diff -u Vanilla/ntserv/genspkt.c:1.15 Vanilla/ntserv/genspkt.c:1.16
--- Vanilla/ntserv/genspkt.c:1.15	Fri Mar 24 13:55:15 2000
+++ Vanilla/ntserv/genspkt.c	Sat May 27 04:46:25 2000
@@ -1225,12 +1225,13 @@
 	if (me!=pl)
 	    sndFlags(flags, pl, UPDT_ALL);
 
-	/* We update the player if:
+ 	/* We update the player if any of the following are true:
+	 * 0) galactic_smooth is set in sysdef
 	 * 1) haven't updated him for 9 intervals.
 	 * 2) he is on the screen
 	 * 3) he was on the screen recently.
 	 */
-	if (!update && repCount % efticks(9) != 0 && 
+	if (!update && !galactic_smooth && repCount % efticks(9) != 0 && 
 	    (ntohl(cpl->x) < me->p_x - SCALE*WINSIDE/2 ||
 	     ntohl(cpl->x) > me->p_x + SCALE*WINSIDE/2 ||
 	     ntohl(cpl->y) > me->p_y + SCALE*WINSIDE/2 ||
Index: Vanilla/ntserv/data.c
diff -u Vanilla/ntserv/data.c:1.14 Vanilla/ntserv/data.c:1.15
--- Vanilla/ntserv/data.c:1.14	Tue May 23 20:16:31 2000
+++ Vanilla/ntserv/data.c	Sat May 27 04:46:25 2000
@@ -1,4 +1,4 @@
-/* $Id: data.c,v 1.14 2000/05/24 01:16:31 jeffno Exp $
+/* $Id: data.c,v 1.15 2000/05/27 09:46:25 jeffno Exp $
  */
 
 #include "../ntserv/copyright.h"
@@ -160,6 +160,7 @@
 int	loadcheck=0;
 float   maxload=0.7;
 int	vectortorps = 0;
+int	galactic_smooth = 0;
 
 int	udpSock=(-1);     /* UDP - the almighty socket */
 int	commMode=0;     /* UDP - initial mode is TCP only */
Index: Vanilla/ntserv/data.h
diff -u Vanilla/ntserv/data.h:1.11 Vanilla/ntserv/data.h:1.12
--- Vanilla/ntserv/data.h:1.11	Tue May 23 20:16:31 2000
+++ Vanilla/ntserv/data.h	Sat May 27 04:46:25 2000
@@ -1,4 +1,4 @@
-/* $Id: data.h,v 1.11 2000/05/24 01:16:31 jeffno Exp $
+/* $Id: data.h,v 1.12 2000/05/27 09:46:25 jeffno Exp $
  */
 
 #ifndef _h_data
@@ -199,6 +199,7 @@
 extern int loadcheck;
 extern float maxload;
 extern int vectortorps;
+extern int galactic_smooth;
 
 extern int udpSock;		/* UDP */
 extern int commMode;		/* UDP */