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

Modified Files:
	local.c 
Log Message:
Client side fix to SP2 not sending negative coords correctly..simply check against GWIDTH for redraw checks.

Index: local.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/local.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- local.c	28 May 2006 06:28:14 -0000	1.34
+++ local.c	29 May 2006 02:41:35 -0000	1.35
@@ -140,7 +140,7 @@
        check first to make sure it's valid.  This is mainly important for if
        it tries to redraw and we're already dead
     */
-    if (sectorx < 0 || sectory < 0)
+    if (sectorx < 0 || sectory < 0 || sectorx > MAXSECTOR || sectory > MAXSECTOR )
         return;
 
     l = sector_offx < view && sectorx > 0;
@@ -2538,7 +2538,7 @@
     /* Keep redrawing for double buffered observers who get set out of normal gameplay bounds,
        whether due to locking onto an ineligible planet, or observing a player who dies -
        otherwise screen doesn't refresh*/
-    if (me->p_x < 0 && !(doubleBuffering && (me->p_flags & PFOBSERV)))
+    if (me->p_x < 0 || me->p_x >= GWIDTH && !(doubleBuffering && (me->p_flags & PFOBSERV)))
         return;
 
     DrawPlanets ();