Update of /cvsroot/netrek/client/netrekxp/src
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27034/src
Modified Files:
local.c
Log Message:
Observer fixes for headingTic.
Index: local.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/local.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- local.c 15 Mar 2007 20:49:34 -0000 1.74
+++ local.c 17 Mar 2007 04:46:23 -0000 1.75
@@ -1170,7 +1170,7 @@
/* Self tic heading */
if (headingTic)
{
- if (myPlayer(j))
+ if (myPlayer(j) || isObsLockPlayer(j))
{
startx = dx + (int) (TIC_DIST/SCALE * Cos[j->p_dir]);
starty = dy + (int) (TIC_DIST/SCALE * Sin[j->p_dir]);
@@ -1197,7 +1197,7 @@
j->p_y - planets[j->p_planet].pl_y) / XPI * 128.);
}
- if (j->p_dir != j->p_desdir && !(j->p_flags & (PFORBIT | PFDOCK)))
+ if (j == me && j->p_dir != j->p_desdir && !(j->p_flags & (PFORBIT | PFDOCK | PFOBSERV)))
{
startx = dx + (int) (TIC_DIST/SCALE * Cos[j->p_desdir]);
starty = dy + (int) (TIC_DIST/SCALE * Sin[j->p_desdir]);