Update of /cvsroot/netrek/client/netrekxp/src In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv25797/src Modified Files: local.c Log Message: Adds tractorID functionality. Shows ship # of player you are tractor/pressoring underneath your ship. Index: local.c =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/src/local.c,v retrieving revision 1.71 retrieving revision 1.72 diff -u -d -r1.71 -r1.72 --- local.c 15 Mar 2007 15:39:27 -0000 1.71 +++ local.c 15 Mar 2007 16:59:49 -0000 1.72 @@ -1293,6 +1293,25 @@ clearzone[2][clearcount] = buflen * W_Textwidth; clearzone[3][clearcount] = W_Textheight; clearcount++; + + /* Tractor target ID */ + if (tractorID && (myPlayer(j) || isObsLockPlayer(j))) + { + if (j->p_flags & (PFTRACT | PFPRESS)) + { + idbuf[0] = *(shipnos + players[j->p_tractor].p_no); + buflen = 1; + W_MaskText (w, dx - (j->p_ship.s_width / 2), + dy + (j->p_ship.s_height / 2), + (j->p_flags & PFTRACT) ? gColor : yColor, + idbuf, buflen, shipFont (j)); + clearzone[0][clearcount] = dx - (j->p_ship.s_width / 2); + clearzone[1][clearcount] = dy + (j->p_ship.s_height / 2); + clearzone[2][clearcount] = buflen * W_Textwidth; + clearzone[3][clearcount] = W_Textheight; + clearcount++; + } + } } }