Update of /cvsroot/netrek/client/netrekxp/include In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv12533/include Modified Files: data.h defs.h proto.h wlib.h Log Message: Added drawRange option to show range at which enemies can see you. The extent of range is calculated identical to the server. Planets within the range of the circle are flagged as needing redraws. Added a new flag to W_WriteCircle function to indicate whether to draw the circle dashed or not. Index: wlib.h =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/include/wlib.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- wlib.h 6 Jun 2006 19:50:38 -0000 1.9 +++ wlib.h 19 Mar 2007 00:05:13 -0000 1.10 @@ -197,6 +197,7 @@ int, int, int, + int, W_Color); extern void W_WriteTriangle (W_Window, int, Index: defs.h =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/include/defs.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- defs.h 15 Mar 2007 20:49:33 -0000 1.15 +++ defs.h 19 Mar 2007 00:05:12 -0000 1.16 @@ -76,6 +76,12 @@ * person can go into orbit */ #define PFIREDIST 1500 /* At this range a planet * will shoot at a player */ +#define MAXDISTCLOAK (WINSIDE/7) + /* At this range a player can + be seen while cloaked */ +#define MAXDISTVIS (WINSIDE/3) + /* At this range a player can be + seen while visible (uncloaked) */ /* 6 minutes is maximum for autoquit -- anything more causes problems in the * server. (?) */ Index: data.h =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/include/data.h,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -r1.62 -r1.63 --- data.h 18 Mar 2007 01:46:49 -0000 1.62 +++ data.h 19 Mar 2007 00:05:12 -0000 1.63 @@ -685,6 +685,7 @@ extern int omitTeamLetter; /* don't show team letter on map */ extern int viewBox; /* show local window box on map */ +extern int viewRange; /* show range at which enemies can see you as a circle on map */ extern struct stringlist * defaults; /* pointer to defaults list */ Index: proto.h =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/include/proto.h,v retrieving revision 1.40 retrieving revision 1.41 diff -u -d -r1.40 -r1.41 --- proto.h 17 Mar 2007 22:40:02 -0000 1.40 +++ proto.h 19 Mar 2007 00:05:13 -0000 1.41 @@ -602,6 +602,7 @@ int y, int r, int highlight, + int dashed, W_Color color); void W_WriteTriangle (W_Window window, int x,