Vanilla Development Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS update: Vanilla/ntserv
Date: Thursday January 6, 19100 @ 14:48
Author: unbelver
Update of /home/netrek/cvsroot/Vanilla/ntserv
In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv2964
Modified Files:
genspkt.c
Log Message:
Hmm, I mistyped earlier and diffs for genspkt.c didn't go through.
--Carlos V.
****************************************
Index: Vanilla/ntserv/genspkt.c
diff -u Vanilla/ntserv/genspkt.c:1.9 Vanilla/ntserv/genspkt.c:1.10
--- Vanilla/ntserv/genspkt.c:1.9 Thu Dec 30 09:04:39 1999
+++ Vanilla/ntserv/genspkt.c Thu Jan 6 14:48:41 2000
@@ -1136,7 +1136,8 @@
sndLogin(login, pl);
- if (pl==me)
+ if ( (pl==me) ||
+ ( !(me->p_flags & PFROBOT) && (me->p_team == NOBODY) ) )
sndHostile(hostile, pl, UPDT_ALL);
else
sndHostile(hostile, pl, UPDT_MOST);
@@ -1390,7 +1391,9 @@
* Also send him info on every fifth cycle if the planet needs to
* be redrawn.
*/
- if ((plan->pl_info & me->p_team)==0) {
+ if ((me->p_x > 0) && (me->p_y > 0) && (me->p_team == NOBODY) ) {
+ sndPlanet(pl, plan, UPDT_ALL);
+ } else if ((plan->pl_info & me->p_team)==0) {
sndPlanet(pl, plan, UPDT_LITTLE);
} else if ( plan->pl_info & me->p_team ) {
sndPlanet(pl, plan, UPDT_ALL);