cluecheck.c:64:  k=10*(remap[me->p_team]-1);
cluecheck.c:66:    if (planets[i+k].pl_owner==me->p_team) {
cluecheck.c:67:      planets[i+k].pl_armies += me->p_armies;
cluecheck.c:69:                     me->p_name, me->p_armies, planets[k+i].pl_name);
cluecheck.c:80:  bounce(me->p_no,"************* READ THIS ** READ THIS ** READ THIS ******************");
cluecheck.c:81:  bounce(me->p_no,"This is a clue server, you MUST read messages on the game");
cluecheck.c:83:  bounce(me->p_no,"To verify, send the answer of the following question to yourself.");
cluecheck.c:84:  bounce(me->p_no,question->quest);
cluecheck.c:85:  for(h=question->help; *h; h++) bounce(me->p_no,*h);
cluecheck.c:87:  bounce(me->p_no,"To verify, send the word '%s' to yourself. Thank you.", clueString);
cluecheck.c:89:  bounce(me->p_no,"********************************************************************");
cluecheck.c:97:  if ((me->p_status != PALIVE) && (me->p_status != POBSERV))  return;
cluecheck.c:101:    if (!minRank && (me->p_stats.st_rank >= cluerank)){
cluecheck.c:102:      bounce(me->p_no," ");
cluecheck.c:103:      bounce(me->p_no,"Due to your rank, you're automatically verified.");
cluecheck.c:104:      bounce(me->p_no," ");
cluecheck.c:111:      bounce(me->p_no," ");
cluecheck.c:112:      bounce(me->p_no,"God has determined that you're not a twink. You've been verified.");
cluecheck.c:113:      bounce(me->p_no," ");
cluecheck.c:144:    me->p_ship.s_type = STARBASE; 
cluecheck.c:145:    me->p_whydead=KPROVIDENCE;
cluecheck.c:146:    me->p_explode=10;
cluecheck.c:147:    me->p_status=PEXPLODE;
cluecheck.c:148:    me->p_whodead=0;
cluecheck.c:151:        me->p_name, me->p_mapchars);
cluecheck.c:152:    if (me->p_armies>0) save_armies();
cluecheck.c:157:    bounce(me->p_no,"You have been ejected from the game for not reading messages");
cluecheck.c:158:    bounce(me->p_no,"If you have any questions, send mail to the server admin.");
cluecheck.c:159:    me->p_whydead=KQUIT;
cluecheck.c:160:    me->p_explode=10;
cluecheck.c:161:    me->p_status=PEXPLODE;
cluecheck.c:162:    me->p_whodead=0;
cluecheck.c:165:        me->p_name, me->p_mapchars);
cluecheck.c:166:    if (me->p_armies>0) save_armies();
commands.c:1009:  j->p_whodead=me->p_no;
commands.c:1351:    deltaPlanets = me->p_stats.st_tplanets - startTplanets;
commands.c:1352:    deltaArmies = me->p_stats.st_tarmsbomb - startTarms;
commands.c:1353:    deltaKills = me->p_stats.st_tkills - startTkills;
commands.c:1354:    deltaLosses = me->p_stats.st_tlosses - startTlosses;
commands.c:1355:    deltaTicks = me->p_stats.st_tticks - startTticks;
commands.c:1380:        me->p_mapchars,
commands.c:1406:    deltaKills = me->p_stats.st_sbkills - startSBkills;
commands.c:1407:    deltaLosses = me->p_stats.st_sblosses - startSBlosses;
commands.c:1408:    deltaTicks = me->p_stats.st_sbticks - startSBticks;
commands.c:1409:    overallRatio = (float) (me->p_stats.st_sblosses==0) ?
commands.c:1410:      (float) me->p_stats.st_sbkills :
commands.c:1411:      (float) me->p_stats.st_sbkills / (float) me->p_stats.st_sblosses;
commands.c:1429:    if (me->p_stats.st_sbticks != 0) {
commands.c:1430:        overallKPH = (float) me->p_stats.st_sbkills * 36000.0 /
commands.c:1431:                (float) me->p_stats.st_sbticks;
commands.c:1432:        overallDPH = (float) me->p_stats.st_sblosses * 36000.0 /
commands.c:1433:                (float) me->p_stats.st_sbticks;
commands.c:1440:      me->p_mapchars,
commands.c:1441:      me->p_stats.st_sbkills,
commands.c:1442:      me->p_stats.st_sblosses,
commands.c:1443:      (float) me->p_stats.st_sbticks/36000.0,
commands.c:1449:          me->p_mapchars,
commands.c:1468:    if(me->p_avrt == -1){
commands.c:1471:           me->p_mapchars[0], me->p_mapchars[1]);
commands.c:1476:            me->p_mapchars[0], me->p_mapchars[1],
commands.c:1477:            me->p_avrt,
commands.c:1478:            me->p_stdv,
commands.c:1479:            me->p_pkls_s_c,
commands.c:1480:            me->p_pkls_c_s);
coup.c:22:    l = &planets[me->p_planet];
coup.c:23:    if (!(me->p_flags & PFORBIT) ||
coup.c:25:	(l->pl_owner == me->p_team) ||
coup.c:26:	!(l->pl_flags & me->p_team))
coup.c:29:	int t = me->p_special;
coup.c:35:	for (t = (t+1) % NUMSPECIAL; me->p_weapons[t].sw_number == 0 &&
coup.c:36:	    t != me->p_special; t = (t+1) % NUMSPECIAL)
coup.c:39:	if ((t == me->p_special) && (me->p_weapons[t].sw_number == 0))
coup.c:42:	    me->p_special = -1;
coup.c:46:	    if (me->p_weapons[t].sw_number < 0)  /* infinite */
coup.c:47:		sprintf(buf, "Special Weapon: %s", me->p_weapons[t].sw_name);
coup.c:50:		    me->p_weapons[t].sw_name, me->p_weapons[t].sw_number);
coup.c:53:	    me->p_special = t;
coup.c:59:    if (me->p_kills < 1.0) {
coup.c:63:    if (!(me->p_flags & PFORBIT)) {
coup.c:68:	if ((l->pl_owner == me->p_team) && (l->pl_armies > 0)) {
coup.c:73:    l = &planets[me->p_planet];
coup.c:75:    if ((!(l->pl_flags & PLHOME)) || ((l->pl_flags & ALLTEAM) != me->p_team)) {
coup.c:98:	me->p_planets++;
coup.c:99:	me->p_genoplanets++;
coup.c:102:	    me->p_stats.st_tplanets+=3;
coup.c:105:	    me->p_stats.st_tplanets++;
coup.c:110:	    me->p_stats.st_planets+=3;
coup.c:112:	    me->p_stats.st_planets++;
daemonII.c:1287:			       (double) (yme-y)) / 3.14159 * 128.)));
daemonII.c:1522:	me->p_armsbomb += h ;
daemonII.c:1526:	  me->p_kills += 0.02 * h ;
daemonII.c:1527:	  me->p_genoarmsbomb += h ;
daemonII.c:1528:	  checkmaxkills(me->p_no);
daemonII.c:1530:	  me->p_stats.st_tarmsbomb += h ;
daemonII.c:1534:	  me->p_stats.st_armsbomb += h ;
daemonII.c:1540:		teamlet[me->p_team], shipnos[me->p_no], me->p_name,
daemonII.c:1544:		teamlet[me->p_team], shipnos[me->p_no], me->p_name);
daemonII.c:1974:            l->pl_couptime--;
daemonII.c:2019:            l->pl_couptime--;
daemonII.c:2612:                          me->p_ship.s_type!=STARBASE) {
daemonII.c:2651:        if ((me->p_whydead == KQUIT) && (friendlyPlayer(j)))
daemonII.c:2654:        if ((me->p_whydead == KGHOST) || (me->p_whydead == KPROVIDENCE)) 
death.c:23:    if (!me->p_process)
death.c:33:    me->p_status = POUTFIT;             /* Stop the ghost buster */
death.c:36:    me->p_flags &= ~PFTWARP;
death.c:40:    switch(me->p_whydead) {
death.c:58:	ERROR(1,("BUG in server: ?? reason for death: %d\n",me->p_whydead));
death.c:59:	printf("BUG in server: ?? reason for death: %d\n",me->p_whydead);
death.c:64:    me->p_flags &= ~(PFWAR|PFREFITTING);
death.c:68:    if (me->p_stats.st_rank < NUMRANKS-1) {
detonate.c:24:  if (me->p_fuel < myship->s_detcost) {
detonate.c:28:  if (me->p_flags & PFWEP) {
detonate.c:33:  me->p_fuel  -= myship->s_detcost;
detonate.c:34:  me->p_wtemp += myship->s_detcost / 5;
detonate.c:51:	dx = t->t_x - me->p_x;
detonate.c:54:	dy = t->t_y - me->p_y;
detonate.c:59:	  t->t_whodet = me->p_no;
distress.c:109:                        me->p_name,
distress.c:110:                        me->p_monitor,
enter.c:57:    struct ship *myship = &me->p_ship;
enter.c:69:    STRNCPY(me->p_name, name, NAME_LEN);
enter.c:70:    me->p_name[NAME_LEN - 1] = '\0';
enter.c:100:	me->p_ship.s_plasmacost = -1;
enter.c:103:    me->p_upgrades = 0.0;
enter.c:105:	me->p_upgradelist[i] = 0;
enter.c:106:    me->p_special = -1;
enter.c:110:	me->p_weapons[11].sw_number = -1;
enter.c:111:	me->p_special = 11;
enter.c:113:    me->p_team = (1 << tno);
enter.c:116:	me->p_weapons[0].sw_number = -1;
enter.c:117:	me->p_weapons[5].sw_number = -1;
enter.c:118:	me->p_weapons[10].sw_number = -1;
enter.c:119:	me->p_special = 10;
enter.c:121:	    me->p_name, teamlet[me->p_team], shipnos[me->p_no]);
enter.c:127:	for (i=0; i <= 10; i++) me->p_weapons[i].sw_number = -1;
enter.c:128:	me->p_special = 10;
enter.c:132:    me->p_updates = 0;
enter.c:133:    me->p_flags = PFSHIELD;
enter.c:134:    if (s_type==STARBASE) me->p_flags |= PFDOCKOK;
enter.c:135:    me->p_dir = 0;
enter.c:136:    me->p_desdir = 0;
enter.c:137:    me->p_speed = 0;
enter.c:138:    me->p_desspeed = 0;
enter.c:139:    me->p_subspeed = 0;
enter.c:141:	me->p_team = 0;
enter.c:145:	me->p_team = (1 << tno);
enter.c:150:	me->p_x = planets[startplanet].pl_x + (random() % 10000) - 5000;
enter.c:151:	me->p_y = planets[startplanet].pl_y + (random() % 10000) - 5000;
enter.c:152:	if (me->p_x < 0) me->p_x=0;
enter.c:153:	if (me->p_y < 0) me->p_y=0;
enter.c:154:	if (me->p_x > GWIDTH) me->p_x = GWIDTH;
enter.c:155:	if (me->p_y > GWIDTH) me->p_y = GWIDTH;
enter.c:157:    me->p_ntorp = 0;
enter.c:158:    me->p_cloakphase = 0;
enter.c:159:    me->p_nplasmatorp = 0;
enter.c:160:    me->p_damage = 0;
enter.c:161:    me->p_subdamage = 0;
enter.c:162:    me->p_etemp = 0;
enter.c:163:    me->p_etime = 0;
enter.c:164:    me->p_wtemp = 0;
enter.c:165:    me->p_wtime = 0;
enter.c:166:    me->p_shield = me->p_ship.s_maxshield;
enter.c:167:    me->p_subshield = 0;
enter.c:168:    me->p_swar = 0;
enter.c:169:    me->p_lastseenby = VACANT;
enter.c:170:    me->p_kills = 0.0;
enter.c:171:    me->p_armies = 0;
enter.c:172:    me->p_docked = 0;
enter.c:173:    me->p_port[0] = VACANT;
enter.c:174:    me->p_port[1] = VACANT;
enter.c:175:    me->p_port[2] = VACANT;
enter.c:176:    me->p_port[3] = VACANT;
enter.c:177:/*    if (!keeppeace) me->p_hostile = (FED|ROM|KLI|ORI);*/
enter.c:179:    me->p_hostile &= ~me->p_team;
enter.c:180:    me->p_war = me->p_hostile;
enter.c:183:    sprintf(me->p_mapchars,"%c%c",teamlet[me->p_team], shipnos[me->p_no]);
enter.c:184:    sprintf(me->p_longname, "%s (%s)", me->p_name, me->p_mapchars);	    
enter.c:195:	sprintf(addrbuf, " %s->ALL", me->p_mapchars);
enter.c:196:	if ((tno == 4) && (strcmp(me->p_monitor, "Nowhere") == 0)) {
enter.c:206:	        pmessage2(0, MALL, addrbuf, me->p_no,
enter.c:214:		pmessage2(0, MALL, addrbuf, me->p_no,
enter.c:222:		pmessage2(0, MALL, addrbuf, me->p_no,
enter.c:233:	  pmessage2(0, MALL | MJOIN, addrbuf, me->p_no,
enter.c:235:		me->p_name,
enter.c:236:		me->p_mapchars,
enter.c:237:		ranks[me->p_stats.st_rank].name,
enter.c:238:		me->p_login,
enter.c:239:		me->p_monitor);
enter.c:241:	  pmessage2(0, MALL | MJOIN, addrbuf, me->p_no,
enter.c:243:		me->p_name,
enter.c:244:                me->p_mapchars,
enter.c:245:                ranks[me->p_stats.st_rank].name,
enter.c:246:                me->p_login,
enter.c:247:		me->p_full_hostname);
enter.c:253:	  pmessage2(0, MALL | MJOIN, addrbuf, me->p_no,
enter.c:255:		ranks[me->p_stats.st_rank].name, 
enter.c:256:		me->p_name, 
enter.c:257:		me->p_mapchars, 
enter.c:258:		me->p_login,
enter.c:259:		me->p_monitor);
enter.c:262:	  pmessage2(0, MALL | MJOIN, addrbuf, me->p_no,
enter.c:264:		ranks[me->p_stats.st_rank].name, 
enter.c:265:		me->p_name, 
enter.c:266:		me->p_mapchars, 
enter.c:267:		me->p_login,
enter.c:268:		me->p_full_hostname);
enter.c:275:    me->p_fuel = myship->s_maxfuel;
enter.c:290:	me->p_hostile = 
enter.c:296:	me->p_hostile = FED|ROM|KLI|ORI;
enter.c:311:	me->p_x = GWIDTH/2 + (random() % INDEP) - INDEP/2; /* middle 9th of */
enter.c:312:	me->p_y = GWIDTH/2 + (random() % INDEP) - INDEP/2; /* galaxy */
enter.c:318:		if ((ABS(p->p_x - me->p_x) < 2*TRACTDIST) && /* arbitrary def */
enter.c:319:		    (ABS(p->p_y - me->p_y) < 2*TRACTDIST)) { /* of too close */
enter.c:337:        me->p_weapons[i].sw_number = 0;
enter.c:339:    strcpy (me->p_weapons[0].sw_name, "Pseudoplasma");
enter.c:340:    me->p_weapons[0].sw_type = SPECPLAS;
enter.c:341:    me->p_weapons[0].sw_damage = 0;
enter.c:342:    me->p_weapons[0].sw_fuse = 30;
enter.c:343:    me->p_weapons[0].sw_speed = 15;
enter.c:344:    me->p_weapons[0].sw_turns = 1;
enter.c:348:	sprintf(me->p_weapons[i].sw_name, "Type %d Plasma", i);
enter.c:349:	me->p_weapons[i].sw_type = SPECPLAS;
enter.c:350:	me->p_weapons[i].sw_damage = 25 * (i + 1);
enter.c:351:	me->p_weapons[i].sw_fuse = 30;
enter.c:352:	me->p_weapons[i].sw_speed = 15;
enter.c:353:	me->p_weapons[i].sw_turns = 1;
enter.c:355:    strcpy(me->p_weapons[6].sw_name, "10 megaton warhead");
enter.c:356:    me->p_weapons[6].sw_damage = 2;
enter.c:357:    strcpy(me->p_weapons[7].sw_name, "20 megaton warhead");
enter.c:358:    me->p_weapons[7].sw_damage = 5;
enter.c:359:    strcpy(me->p_weapons[8].sw_name, "50 megaton warhead");
enter.c:360:    me->p_weapons[8].sw_damage = 10;
enter.c:361:    strcpy(me->p_weapons[9].sw_name, "100 megaton warhead");
enter.c:362:    me->p_weapons[9].sw_damage = 25;
enter.c:365:	me->p_weapons[i].sw_type = SPECBOMB;
enter.c:366:	me->p_weapons[i].sw_fuse = 1;
enter.c:367:	me->p_weapons[i].sw_speed = 0;
enter.c:368:	me->p_weapons[i].sw_turns = 0;
enter.c:370:    strcpy(me->p_weapons[10].sw_name, "Suicide Drones");
enter.c:371:    me->p_weapons[10].sw_type = SPECTORP;
enter.c:372:    me->p_weapons[10].sw_damage = 60;
enter.c:373:    me->p_weapons[10].sw_speed = 60;
enter.c:374:    me->p_weapons[10].sw_fuse = 300;
enter.c:375:    me->p_weapons[10].sw_turns = 2;
enter.c:377:    strcpy(me->p_weapons[11].sw_name, "Mines");
enter.c:378:    me->p_weapons[11].sw_type = SPECMINE;
enter.c:379:    me->p_weapons[11].sw_damage = 100;
enter.c:380:    me->p_weapons[11].sw_speed = 2;
enter.c:381:    me->p_weapons[11].sw_fuse = 600;
enter.c:382:    me->p_weapons[11].sw_turns = 0;
feature.c:202:                me->gen_distress = (spack->value == 1);
feature.c:206:                me->gen_distress = 0;
features.c:33:            me->gen_distress = 1;
features.c:84:				pmessage(me->p_no,MINDIV,"Server: ","%s","Your client is truly ancient! It doesn't even identify itself properly.");
features.c:93:				pmessage(me->p_no,MINDIV,"Server: ","%s","What an old client you have!! It is missing some features.");
features.c:102:			  pmessage(me->p_no,MINDIV|MCONFIG,"SRV:","%s",features);
features.c:107:			pmessage(me->p_no,MINDIV|MCONFIG,"SRV:","%s",features);
getentry.c:32:	sendMaskPacket(tournamentMask(me->p_team,me->w_queue));
getentry.c:35:	if (me->p_status == PFREE) {
getentry.c:37:	    me->p_status=PDEAD;
getentry.c:38:	    me->p_explode=600;
getentry.c:47:        		me->p_login,
getentry.c:48:        		me->p_monitor));
getentry.c:60:		switch(me->p_status) {
getentry.c:63:		    me->p_status=PDEAD;
getentry.c:64:		    me->p_explode=600;
getentry.c:67:		    me->p_ghostbuster=0;
getentry.c:71:                  me->p_status = PDEAD;
getentry.c:74:		    me->p_explode=600;
getentry.c:77:		    me->p_explode=600;
getentry.c:78:		    me->p_ghostbuster=0;
getentry.c:85:		    switch(me->p_status) {
getentry.c:89:			me->p_ghostbuster=1000000; 
getentry.c:93:                      me->p_status = PDEAD;
getentry.c:96:			me->p_explode=0;
getentry.c:99:			me->p_explode=0;
getentry.c:100:			me->p_ghostbuster=1000000;
getentry.c:108:            if(me->p_process != getpid()){
getentry.c:126:	    if (!(tournamentMask(me->p_team,me->w_queue) & (1<<teamPick))) {
getentry.c:133:	    if (((1<<teamPick) != me->p_team) &&
getentry.c:134:		(me->p_team != ALLTEAM)) /* switching teams 7/27/91 TC */
getentry.c:135:		if ((switching != teamPick) && (me->p_whydead != KGENOCIDE)) {
getentry.c:218:		    if (i != me->p_no &&
getname.c:31:    *(me->p_name)=0;
getname.c:32:    while (*(me->p_name)==0) {
getname.c:50:	if (me->p_status==PFREE) exitGame();
getname.c:76:	strcpy(me->p_name, namePick);
getname.c:77:	me->p_pos= -1;
getname.c:78:	MCOPY(&player.stats, &(me->p_stats), sizeof(struct stats));
getname.c:158:	    me->p_pos = entries;
getname.c:159:	    MCOPY(&player.stats, &(me->p_stats), sizeof(struct stats));
getname.c:160:	    strcpy(me->p_name, namePick);
getname.c:173:	strcpy(me->p_name, namePick);
getname.c:174:	me->p_pos=position;
getname.c:175:	MCOPY(&player.stats, &(me->p_stats), sizeof(struct stats));
getname.c:185:    if (me->p_pos < 0) return;
getname.c:188:	me->p_stats.st_lastlogin = time(NULL);
getname.c:189:	lseek(fd, 32 + me->p_pos * sizeof(struct statentry) ,0);
getname.c:190:	write(fd, (char *) &me->p_stats, sizeof(struct stats));
input.c:59:  if (me->p_updates > delay) {
input.c:60:    me->p_flags &= ~(PFWAR);
input.c:62:  if (me->p_updates > rdelay) {
input.c:63:    me->p_flags &= ~(PFREFITTING);
input.c:67:     if(ping_allow_ghostbust && me->p_status == PALIVE && ping_ghostbust >
input.c:70:        me->p_ghostbuster = GHOSTTIME;
input.c:72:	ERROR(2,("GHOSTBUSTED from ping: %c%c: %s@%s\n", me->p_mapchars[0],
input.c:73:                                                       me->p_mapchars[1],
input.c:80:  me->p_ghostbuster = 0;
input.c:89:  if (!me->p_process)
input.c:105:	me->p_login,
input.c:106:	me->p_monitor));
input.c:118:    me->p_ghostbuster = 0;
input.c:127:		me->p_monitor));
input.c:133:   	me->p_whydead = KQUIT;
input.c:134:     	me->p_status = PEXPLODE;
input.c:143:  if (!me->p_process) 
input.c:163:    if (!me->p_process)
input.c:199:	    if (me->p_updates > delay) {
input.c:200:	        me->p_flags &= ~(PFWAR);
input.c:202:	    if (me->p_updates > rdelay) {
input.c:203:	        me->p_flags &= ~(PFREFITTING);
interface.c:42:            me->p_upgradelist[type] * adderupgradecost[type];
interface.c:44:        kills_req = base + me->p_upgradelist[type] * adder;
interface.c:46:    me->p_refitting = 0;
interface.c:47:    me->p_flags &= ~(PFREFIT);
interface.c:48:    if (me->p_kills < kills_req) {
interface.c:54:    me->p_flags |= PFREFITTING;
interface.c:56:        me->p_upgrades += kills_req;
interface.c:57:        me->p_upgradelist[type]++;
interface.c:59:    me->p_kills -= kills_req;
interface.c:61:    rdelay = me->p_updates + (kills_req * 10);
interface.c:81:    if (me->p_refitting)
interface.c:84:	    new_warning(UNDEF,"Upgrade aborted"); me->p_flags &= ~(PFREFIT);
interface.c:85:	    me->p_refitting = 0; return;
interface.c:87:	sprintf(addrbuf,"UPG->%c%c ", teamlet[me->p_team], shipnos[me->p_no]);
interface.c:88:	getship(&tmpship, me->p_ship.s_type);
interface.c:89:	switch(me->p_refitting)
interface.c:94:	    case 1: me->p_shield = me->p_ship.s_maxshield;
interface.c:95:                    me->p_fuel = me->p_ship.s_maxfuel;
interface.c:96:                    me->p_damage = me->p_wtemp = me->p_etemp = 0;
interface.c:97:		    me->p_flags &= ~(PFREFIT);
interface.c:98:		    me->p_flags |= PFREFITTING;
interface.c:99:		    rdelay = me->p_updates + 30;
interface.c:101:		    me->p_refitting = 0;
interface.c:103:	    case 2: pmessage(me->p_no, MINDIV, addrbuf,"Shields: 0=abort, 1=upgrade, 2=overload");
interface.c:104:		    me->p_refitting = 2;
interface.c:106:	    case 3: pmessage(me->p_no, MINDIV, addrbuf,"Engines: 0=abort, 1=fuel, 2=rechg, 3=maxwarp, 4=acc, 5=dec, 6=cool");
interface.c:107:		    me->p_refitting = 3;
interface.c:109:	    case 4: pmessage(me->p_no, MINDIV, addrbuf,"Weapons: 0=abort, 1=phasers, 2=torps, 3=cooling");
interface.c:110:		    me->p_refitting = 4;
interface.c:112:	    case 5: pmessage(me->p_no, MINDIV, addrbuf,"Special: 0=abort, 1=plasmas, 2=nukes, 3=drones, 4=mines, 5=inventory");
interface.c:113:		    me->p_refitting = 5;
interface.c:116:			me->p_no, MINDIV, addrbuf,"Misc: 0=abort, 1=cloak, 2=tractors, 3=damage control, 4=current status");
interface.c:117:		    me->p_refitting = 6;
interface.c:120:		    me->p_flags &= ~(PFREFIT);
interface.c:121:		    me->p_refitting = 0;
interface.c:128:			me->p_ship.s_maxshield += 10;
interface.c:131:			me->p_shield += 100;
interface.c:134:		    me->p_flags &= ~(PFREFIT);
interface.c:135:		    me->p_refitting = 0;
interface.c:142:			me->p_ship.s_maxfuel += 250;
interface.c:145:			me->p_ship.s_recharge += 1;
interface.c:148:	                me->p_ship.s_maxspeed += 1;
interface.c:151:	                me->p_ship.s_accint += 10;
interface.c:154:	                me->p_ship.s_decint += 10;
interface.c:157:	                me->p_ship.s_egncoolrate += 1;
interface.c:160:		    me->p_flags &= ~(PFREFIT);
interface.c:161:		    me->p_refitting = 0;
interface.c:168:			me->p_ship.s_phaserdamage += 2;
interface.c:171:			me->p_ship.s_torpspeed += 1;
interface.c:174:			me->p_ship.s_wpncoolrate += 1;
interface.c:177:		    me->p_flags &= ~(PFREFIT);
interface.c:178:		    me->p_refitting = 0;
interface.c:184:	    case 1: pmessage(me->p_no, MINDIV, addrbuf,"Plasmas: 0=abort, 1-5 = type 1-5, 9=pseudoplasma");
interface.c:185:		    me->p_refitting = 7;
interface.c:187:	    case 2: pmessage(me->p_no, MINDIV, addrbuf,"Nuclear: 0=abort, 1=small, 2=med, 3=big, 4=huge");
interface.c:188:		    me->p_refitting = 8;
interface.c:191:		    if (me->p_weapons[10].sw_number < 0)
interface.c:193:			pmessage(me->p_no, MINDIV, addrbuf,"You don't need to buy drones.");
interface.c:198:			me->p_weapons[10].sw_number += 3;
interface.c:199:			sprintf(buf, "%s (%d)", me->p_weapons[10].sw_name,
interface.c:200:			    me->p_weapons[10].sw_number);
interface.c:201:			pmessage(me->p_no, MINDIV, addrbuf,buf);
interface.c:202:			me->p_special = 10;
interface.c:206:		    if (me->p_weapons[11].sw_number < 0)
interface.c:208:			pmessage(me->p_no, MINDIV, addrbuf,"You don't need to buy mines.");
interface.c:213:			me->p_weapons[11].sw_number += 2;
interface.c:214:			sprintf(buf, "%s (%d)", me->p_weapons[11].sw_name,
interface.c:215:			    me->p_weapons[11].sw_number);
interface.c:216:			pmessage(me->p_no, MINDIV, addrbuf,buf);
interface.c:217:			me->p_special = 11;
interface.c:220:	    case 5: if (me->p_special < 0) {
interface.c:224:		    pmessage(me->p_no, MINDIV, addrbuf,"Inventory:");
interface.c:226:		        if (me->p_weapons[i].sw_number != 0)
interface.c:228:			if (me->p_weapons[i].sw_number < 0)
interface.c:229:			    sprintf(buf, " inf %s", me->p_weapons[i].sw_name);
interface.c:231:			    sprintf(buf, "%4d %s", me->p_weapons[i].sw_number,
interface.c:232:			        me->p_weapons[i].sw_name);
interface.c:233:			pmessage(me->p_no, MINDIV, addrbuf,buf);
interface.c:235:		    me->p_flags &= ~(PFREFIT);
interface.c:236:		    me->p_refitting = 0;
interface.c:239:		    me->p_flags &= ~(PFREFIT);
interface.c:240:		    me->p_refitting = 0;
interface.c:248:		me->p_flags &= ~(PFREFIT);
interface.c:249:		me->p_refitting = 0;
interface.c:252:		if (me->p_ship.s_cloakcost) {
interface.c:254:			if (me->p_ship.s_cloakcost == 1)
interface.c:255:			    me->p_ship.s_cloakcost = 0;
interface.c:257:			    me->p_ship.s_cloakcost = 
interface.c:258:				ceil(me->p_ship.s_cloakcost / 2.0);
interface.c:264:		    me->p_ship.s_tractstr += 100;
interface.c:267:		    me->p_ship.s_repair += 10;
interface.c:270:		if (me->p_upgrades == 0.0) {
interface.c:274:		pmessage (me->p_no,  MINDIV, addrbuf,"Current upgrades (cost for next):");
interface.c:276:		    if (me->p_upgradelist[i] > 0) {
interface.c:277:			sprintf(buf, "%4d (%6.2f) %s", me->p_upgradelist[i],
interface.c:278:			    baseupgradecost[i] + me->p_upgradelist[i] *
interface.c:280:			pmessage(me->p_no, MINDIV, addrbuf,buf);
interface.c:285:		    me->p_flags &= ~(PFREFIT);
interface.c:286:		    me->p_refitting = 0;
interface.c:298:			me->p_weapons[speed].sw_number += 12/speed;
interface.c:299:			sprintf(buf, "%s (%d)", me->p_weapons[speed].sw_name,
interface.c:300:			    me->p_weapons[speed].sw_number);
interface.c:301:			pmessage(me->p_no, MINDIV, addrbuf,buf);
interface.c:302:			me->p_special = speed;
interface.c:307:			me->p_weapons[0].sw_number += 12;
interface.c:308:			sprintf(buf, "%s (%d)", me->p_weapons[0].sw_name,
interface.c:309:			    me->p_weapons[0].sw_number);
interface.c:310:			pmessage(me->p_no, MINDIV, addrbuf,buf);
interface.c:311:			me->p_special = 0;
interface.c:315:		    me->p_flags &= ~(PFREFIT);
interface.c:316:		    me->p_refitting = 0;
interface.c:325:	    case 4: if (speed > me->p_ship.s_maxarmies)
interface.c:333:			me->p_weapons[5+speed].sw_number += 1;
interface.c:334:			me->p_ship.s_maxarmies -= speed;
interface.c:335:			sprintf(buf, "%s (%d)", me->p_weapons[5+speed].sw_name,
interface.c:336:			    me->p_weapons[5+speed].sw_number);
interface.c:337:			pmessage(me->p_no, MINDIV, addrbuf,buf);
interface.c:338:			me->p_special = 5+speed;
interface.c:342:		    me->p_flags &= ~(PFREFIT);
interface.c:343:		    me->p_refitting = 0;
interface.c:351:    if (speed > me->p_ship.s_maxspeed) {
interface.c:352:	me->p_desspeed = me->p_ship.s_maxspeed;
interface.c:356:    me->p_desspeed = speed;
interface.c:357:    if (me->p_flags & PFDOCK) {
interface.c:358:	players[me->p_docked].p_docked--;
interface.c:359:	players[me->p_docked].p_port[me->p_port[0]] = VACANT;
interface.c:361:    me->p_flags &= ~(PFREPAIR | PFBOMB | PFORBIT | PFDOCK | PFBEAMUP | PFBEAMDOWN);
interface.c:367:    me->p_desdir = dir;
interface.c:368:    if (me->p_flags & PFDOCK) {
interface.c:369:	players[me->p_docked].p_docked--;
interface.c:370:	players[me->p_docked].p_port[me->p_port[0]] = VACANT;
interface.c:372:    me->p_flags &= ~(PFBOMB | PFORBIT | PFDOCK | PFBEAMUP | PFBEAMDOWN);
interface.c:377:    me->p_flags |= PFSHIELD;
interface.c:378:    me->p_flags &= ~(PFBOMB | PFREPAIR | PFBEAMUP | PFBEAMDOWN);
interface.c:383:    me->p_flags &= ~PFSHIELD;
interface.c:388:    me->p_flags ^= PFSHIELD;
interface.c:389:    me->p_flags &= ~(PFBOMB | PFREPAIR | PFBEAMUP | PFBEAMDOWN);
interface.c:397:    if (!(me->p_flags & PFORBIT)) {
interface.c:404:    owner = planets[me->p_planet].pl_owner;
interface.c:406:    if (me->p_team == owner) {
interface.c:410:    if (!(me->p_war & owner)) {
interface.c:431:      && !(me->p_team & planets[me->p_planet].pl_flags)) {
interface.c:446:    me->p_flags |= PFBOMB;
interface.c:447:    me->p_flags &= ~(PFSHIELD | PFREPAIR | PFBEAMUP | PFBEAMDOWN);
interface.c:452:    if (!(me->p_flags & (PFORBIT | PFDOCK))) {
interface.c:456:    if (me->p_flags & PFORBIT) {
interface.c:457:	if (me->p_team != planets[me->p_planet].pl_owner) {
interface.c:461:    } else if (me->p_flags & PFDOCK) {
interface.c:462:	if (me->p_team != players[me->p_docked].p_team) {
interface.c:467:    me->p_flags |= PFBEAMUP;
interface.c:468:    me->p_flags &= ~(PFSHIELD | PFREPAIR | PFBOMB | PFBEAMDOWN);
interface.c:473:    if (!(me->p_flags & (PFORBIT | PFDOCK))) {
interface.c:477:    if (me->p_flags & PFDOCK) {
interface.c:478:	if (me->p_team != players[me->p_docked].p_team) {
interface.c:483:    me->p_flags |= PFBEAMDOWN;
interface.c:484:    me->p_flags &= ~(PFSHIELD | PFREPAIR | PFBOMB | PFBEAMUP);
interface.c:490:    if ((me->p_flags & PFENG) && (me->p_speed != 0)) {
interface.c:495:	me->p_desspeed = 0;
interface.c:496:	me->p_flags |= PFREPAIR;
interface.c:497:	me->p_flags &= ~(PFSHIELD | PFBOMB | PFBEAMUP | PFBEAMDOWN | PFPLOCK | PFPLLOCK);
interface.c:503:    me->p_flags &= ~PFREPAIR;
interface.c:514:    me->p_flags ^= PFCLOAK;
interface.c:515:    me->p_flags &= ~(PFTRACT | PFPRESS);
interface.c:520:    me->p_flags |= PFCLOAK;
interface.c:521:    me->p_flags &= ~(PFTRACT | PFPRESS);
interface.c:526:    me->p_flags &= ~PFCLOAK;
interface.c:534:    me->p_flags |= PFPLLOCK;
interface.c:535:    me->p_flags &= ~(PFPLOCK|PFORBIT|PFBEAMUP|PFBEAMDOWN|PFBOMB);
interface.c:536:    me->p_planet = planet;
interface.c:556:    me->p_flags |= PFPLOCK;
interface.c:557:    me->p_flags &= ~(PFPLLOCK|PFORBIT|PFBEAMUP|PFBEAMDOWN|PFBOMB);
interface.c:558:    me->p_playerl = player;
interface.c:562:    if ((players[player].p_team == me->p_team) &&
interface.c:607:	me->p_flags &= ~(PFTRACT | PFPRESS);
interface.c:610:    if (me->p_flags & PFCLOAK) {
interface.c:613:    if (player==me->p_no) return;
interface.c:616:    if (hypot((double) me->p_x-victim->p_x,
interface.c:617:	    (double) me->p_y-victim->p_y) < 
interface.c:618:	    ((double) TRACTDIST) * me->p_ship.s_tractrng) {
interface.c:623:	if (me->p_flags & PFDOCK) {
interface.c:624:	    players[me->p_docked].p_docked--;
interface.c:625:	    players[me->p_docked].p_port[me->p_port[0]] = VACANT;
interface.c:628:	me->p_flags &= ~(PFORBIT | PFDOCK);
interface.c:629:	me->p_tractor = player;
interface.c:630:	me->p_flags |= PFTRACT;
interface.c:649:        me->p_flags &= ~(PFTRACT | PFPRESS);
interface.c:652:    if (me->p_flags & PFPRESS) return; /* bug fix: moved down 5/1/92 TC */
interface.c:654:    if (me->p_flags & PFCLOAK) {
interface.c:662:    if (hypot((double) me->p_x-victim->p_x,
interface.c:663:	      (double) me->p_y-victim->p_y) < 
interface.c:664:	((double) TRACTDIST) * me->p_ship.s_tractrng) {
interface.c:669:	if (me->p_flags & PFDOCK) {
interface.c:670:	    players[me->p_docked].p_docked--;
interface.c:671:	    players[me->p_docked].p_port[me->p_port[0]] = VACANT;
interface.c:674:	me->p_flags &= ~(PFORBIT | PFDOCK);
interface.c:675:	me->p_tractor = target;
interface.c:676:	me->p_flags |= (PFTRACT | PFPRESS);
interface.c:690:    mask &= ~me->p_team;
interface.c:691:    mask |= me->p_swar;
interface.c:692:    changes=mask ^ me->p_hostile;
interface.c:707:    if (me->p_flags & PFDOCK) {
interface.c:708:	if (players[me->p_docked].p_team & mask) {
interface.c:709:	    players[me->p_docked].p_port[me->p_port[0]] = VACANT;
interface.c:710:	    players[me->p_docked].p_docked--;
interface.c:711:	    me->p_flags &= ~PFDOCK;
interface.c:713:    } else if (me->p_ship.s_type == STARBASE) {
interface.c:714:	if (me->p_docked > 0) {
interface.c:716:		if (me->p_port[i] == VACANT)   /* isae -- Ted's fix */
interface.c:718:		if (mask & players[me->p_port[i]].p_team) {
interface.c:719:		    players[me->p_port[i]].p_flags &= ~PFDOCK;
interface.c:720:		    me->p_docked--;
interface.c:721:		    me->p_port[i] = VACANT;
interface.c:727:    if (mask & ~me->p_hostile) {
interface.c:728:	me->p_flags |= PFWAR;
interface.c:729:	delay = me->p_updates + 100;
interface.c:732:    me->p_hostile = mask;
interface.c:733:    me->p_war = (me->p_swar | me->p_hostile);
interface.c:744:        teamlet[me->p_team],
interface.c:745:        shipnos[me->p_no],
interface.c:749:	pmessage2(team, MTEAM, addrbuf, me->p_no,
interface.c:751:            me->p_name,
interface.c:752:            teamlet[me->p_team],
interface.c:753:            shipnos[me->p_no],
interface.c:757:	pmessage2(team, MTEAM, addrbuf, me->p_no,
interface.c:759:            me->p_name,
interface.c:760:            teamlet[me->p_team],
interface.c:761:            shipnos[me->p_no],
interface.c:779:    if (me->p_flags & PFORBIT) {
interface.c:780:	if (!(planets[me->p_planet].pl_flags & PLHOME)) {
interface.c:784:	    if (!(planets[me->p_planet].pl_flags & me->p_team)) {
interface.c:789:    } else if (me->p_flags & PFDOCK) {
interface.c:796:	if (players[me->p_docked].p_team != me->p_team) {
interface.c:805:    if ((me->p_damage> ((float)me->p_ship.s_maxdamage)*.75) || 
interface.c:806:	    (me->p_shield < ((float)me->p_ship.s_maxshield)*.75) ||
interface.c:807:	    (me->p_fuel < ((float)me->p_ship.s_maxfuel)*.75)) {
interface.c:812:    if ((me->p_armies > 0)) {
interface.c:818:    if ((type == me->p_ship.s_type) && upgradeable)
interface.c:824:	sprintf(addrbuf,"UPG->%c%c ", teamlet[me->p_team], shipnos[me->p_no]);
interface.c:825:	pmessage(me->p_no, MINDIV, addrbuf,"Upgrade: 0=abort, 1=fixme, 2=shld, 3=eng, 4=weap, 5=spec weap, 6=misc");
interface.c:827:	me->p_refitting = 1;
interface.c:839:      if (me->p_stats.st_rank < sbrank) {
interface.c:856:	    if ((me->p_no != i) && 
interface.c:858:		(players[i].p_team == me->p_team))
interface.c:865:      if (realNumShips(me->p_team) < 4) {
interface.c:877:      if (teams[me->p_team].s_turns > 0) {
interface.c:886:	new_warning(UNDEF,"Not constructed yet. %d minutes required for completion",teams[me->p_team].s_turns);
interface.c:890:    if (type == STARBASE && numPlanets(me->p_team) < 5 && !chaos && !topgun) {
interface.c:895:    if ((me->p_ship.s_type == STARBASE)/* && (type != STARBASE)*/) {
interface.c:897:      me->p_kills=0;
interface.c:900:	if (me->p_port[i] != VACANT) {
interface.c:901:	  players[me->p_port[i]].p_flags &= ~PFDOCK;
interface.c:902:	  me->p_docked--;
interface.c:903:	  me->p_port[i] = VACANT;	
interface.c:904:	  me->p_flags |= PFDOCKOK;
interface.c:909:    if (me->p_upgrades > 0.0)
interface.c:911:	me->p_kills += me->p_upgrades;
interface.c:912:	me->p_upgrades = 0.0;
interface.c:915:	me->p_upgradelist[i] = 0;
interface.c:917:	me->p_weapons[i].sw_number = 0;
interface.c:921:	me->p_weapons[11].sw_number = -1;
interface.c:922:	me->p_special = 11;
interface.c:926:	me->p_weapons[0].sw_number = -1;
interface.c:927:	me->p_weapons[5].sw_number = -1;
interface.c:928:	me->p_weapons[10].sw_number = -1;
interface.c:929:        me->p_special = 5;
interface.c:931:	    me->p_name, teamlet[me->p_team], shipnos[me->p_no]);
interface.c:937:        me->p_special = -1;
interface.c:940:    getship(&(me->p_ship), type);
interface.c:942:    getship(&(me->p_ship), type);
interface.c:948:      ShipFoo.s_type = htons(me->p_ship.s_type);
interface.c:949:      ShipFoo.s_torpspeed = htons(me->p_ship.s_torpspeed);
interface.c:950:      ShipFoo.s_maxfuel = htonl(me->p_ship.s_maxfuel);
interface.c:951:      ShipFoo.s_maxspeed = htonl(me->p_ship.s_maxspeed);
interface.c:952:      ShipFoo.s_maxshield = htonl(me->p_ship.s_maxshield);
interface.c:953:      ShipFoo.s_maxdamage = htonl(me->p_ship.s_maxdamage);
interface.c:954:      ShipFoo.s_maxwpntemp = htonl(me->p_ship.s_maxwpntemp);
interface.c:955:      ShipFoo.s_maxegntemp = htonl(me->p_ship.s_maxegntemp);
interface.c:956:      ShipFoo.s_width = htons(me->p_ship.s_width);
interface.c:957:      ShipFoo.s_height = htons(me->p_ship.s_height);
interface.c:958:      ShipFoo.s_maxarmies = htons(me->p_ship.s_maxarmies);
interface.c:959:      ShipFoo.s_letter = me->p_ship.s_type;
interface.c:962:      ShipFoo.s_phaserrange = htons(me->p_ship.s_phaserdamage);
interface.c:963:      strcpy(ShipFoo.s_name,shipnames[me->p_ship.s_type]);
interface.c:967:    if (type != STARBASE && me->p_kills < plkills) {
interface.c:968:	me->p_ship.s_plasmacost = -1;
interface.c:971:    me->p_shield = me->p_ship.s_maxshield;
interface.c:972:    me->p_damage = 0;
interface.c:973:    me->p_fuel = me->p_ship.s_maxfuel;
interface.c:974:    me->p_wtemp = 0;
interface.c:975:    me->p_etemp = 0;
interface.c:977:	me->p_docked = 0;
interface.c:978:	for (i=0; i<4; i++) me->p_port[i] = VACANT;
interface.c:981:    me->p_flags &= ~(PFREFIT);
interface.c:982:    me->p_flags |= PFREFITTING;
interface.c:983:    rdelay = me->p_updates + 50;
main.c:172:  me->p_process = getpid ();
main.c:173:  me->p_timerdelay = timerDelay / 100000;
main.c:176:    myship = &me->p_ship;
main.c:177:    mystats = &me->p_stats;
main.c:189:    me->p_x= -100000;	
main.c:190:    me->p_y= -100000;
main.c:191:    me->p_team=0;
main.c:193:    me->gen_distress = 0;
main.c:210:    strcpy(me->p_name, pseudo);
main.c:211:    me->p_team=ALLTEAM;
main.c:213:    strcpy(pseudo, me->p_name);
main.c:215:    keeppeace = (me->p_stats.st_flags / ST_KEEPPEACE) & 1;
main.c:216:/*    showgalactic = 1 + (me->p_stats.st_flags / ST_GALFREQUENT) & 1;*/
main.c:220:    me->p_hostile = (FED|ROM|KLI|ORI);
main.c:221:    me->p_war = me->p_hostile;
main.c:224:    me->p_planets=0;
main.c:225:    me->p_genoplanets=0;
main.c:226:    me->p_armsbomb=0;
main.c:227:    me->p_genoarmsbomb=0;
main.c:229:    me->p_whydead=KQUIT;
main.c:231:    STRNCPY(me->p_login, login, NAME_LEN);
main.c:232:    me->p_login[NAME_LEN - 1] = '\0';
main.c:239:    STRNCPY(me->p_monitor, host, NAME_LEN);
main.c:240:    me->p_monitor[NAME_LEN - 1] = '\0';
main.c:245:    STRNCPY(me->p_full_hostname, host, sizeof(me->p_full_hostname));
main.c:246:    me->p_full_hostname[sizeof(me->p_full_hostname) - 1] = '\0';
main.c:252:    me->p_avrt = -1;
main.c:253:    me->p_stdv = -1;
main.c:254:    me->p_pkls_c_s = -1;
main.c:255:    me->p_pkls_s_c = -1;
main.c:258:    startTkills = me->p_stats.st_tkills;
main.c:259:    startTlosses = me->p_stats.st_tlosses;
main.c:260:    startTarms = me->p_stats.st_tarmsbomb;
main.c:261:    startTplanets = me->p_stats.st_tplanets;
main.c:262:    startTticks = me->p_stats.st_tticks;
main.c:264:    startSBkills = me->p_stats.st_sbkills;
main.c:265:    startSBlosses = me->p_stats.st_sblosses;
main.c:266:    startSBticks = me->p_stats.st_sbticks;
main.c:270:    if (me->p_status != PALIVE) {
main.c:271:	me->p_x= -100000;
main.c:272:	me->p_y= -100000;
main.c:317:	me->p_status = POBSERV;     /* put observer in game */
main.c:319:        pmessage(me->p_no, MINDIV, addr_mess(me->p_no,MINDIV),
main.c:324:    me->p_status = PALIVE;			/* Put player in game */
main.c:325:    me->p_ghostbuster = 0;
main.c:332:              me->p_name, me->p_login, host);
main.c:334:      me->p_explode=100;
main.c:335:      me->p_status=PEXPLODE;
main.c:336:      me->p_whydead=KQUIT;   /* make him self destruct */
main.c:337:      me->p_whodead=0;
main.c:342:              me->p_name,  me->p_login, host, shipnos[me->p_no], ctime(&curtime)
main.c:357:    if (me != NULL && me->p_team != ALLTEAM) {
main.c:359:	   teamlet[me->p_team], shipnos[me->p_no]);
main.c:362:	pmessage2(0, MALL | MLEAVE, addrbuf, me->p_no,
main.c:364:	    ranks[me->p_stats.st_rank].name,
main.c:365:	    me->p_name,
main.c:366:	    me->p_mapchars, 
main.c:367:	    me->p_login,
main.c:368:	    me->p_monitor);
main.c:371:	pmessage2(0, MALL | MLEAVE, addrbuf, me->p_no, 
main.c:373:	    ranks[me->p_stats.st_rank].name,
main.c:374:	    me->p_name,
main.c:375:	    me->p_mapchars, 
main.c:376:	    me->p_login,
main.c:377:	    me->p_full_hostname);
main.c:379:	me->p_stats.st_flags &= ~ST_CYBORG; /* clear this flag 8/27/91 TC */
main.c:385:	if(me->p_process != getpid()){
main.c:387:            ERROR(1,( "%d != pid: %d\n", me->p_process, (int)getpid()));
main.c:716:	    me->p_name, 
main.c:717:	    teamlet[me->p_team],
main.c:718:	    shipnos[me->p_no],
main.c:719:	    me->p_stats.st_tplanets - startTplanets,
main.c:720:	    me->p_stats.st_tarmsbomb - startTarms,
main.c:721:	    me->p_stats.st_tkills - startTkills,
main.c:722:	    me->p_stats.st_tlosses - startTlosses,
main.c:723:	    (me->p_stats.st_tticks - startTticks)/600,
main.c:724:	    numPlanets(me->p_team),
main.c:725:	    me->p_login,
main.c:727:	    me->p_monitor,
main.c:729:	    me->p_full_hostname,
orbit.c:70:  dx = base->p_x - me->p_x;
orbit.c:73:  dy = base->p_y - me->p_y;
orbit.c:91:    if (me->p_flags & PFTWARP) {
orbit.c:92:      me->p_flags &= ~PFTWARP;
orbit.c:176:  me->p_flags   &= ~(PFPLOCK | PFPLLOCK | PFTRACT | PFPRESS);
orbit.c:177:  me->p_flags   |= PFDOCK;
orbit.c:178:  me->p_dir      = 64 + dir_from_base;
orbit.c:179:  me->p_desdir   = me->p_dir;
orbit.c:180:  me->p_x        = base->p_x + DOCKDIST * Cos[dir_from_base];
orbit.c:181:  me->p_y        = base->p_y + DOCKDIST * Sin[dir_from_base];
orbit.c:182:  me->p_speed    = 0;
orbit.c:183:  me->p_desspeed = 0;
orbit.c:184:  me->p_docked   = base->p_no;
orbit.c:185:  me->p_port[0]  = port_id;
orbit.c:187:  if (me->p_flags & PFTWARP){
orbit.c:188:    me->p_flags &= ~PFTWARP;
orbit.c:189:    me->p_flags |= PFREFITTING;
orbit.c:190:    rdelay       = me->p_updates + 50;
orbit.c:195:  base->p_port[port_id] = me->p_no;
orbit.c:222:  if (me->p_speed > ORBSPEED) {
orbit.c:231:    if (isAlive(j) && (j->p_flags & PFTRACT) && (j->p_tractor == me->p_no)) {
orbit.c:237:      me->p_flags &= ~(PFDOCK | PFORBIT);
orbit.c:252:  if (me->p_flags & (PFDOCK | PFORBIT))
orbit.c:257:  if (me->p_ship.s_type != STARBASE) {
orbit.c:274:    dx = l->pl_x - me->p_x;
orbit.c:277:    dy = l->pl_y - me->p_y;
orbit.c:286:    if ((me->p_ship.s_type == STARBASE) && (!(me->p_team & l->pl_owner))) {
orbit.c:296:    dir = (u_char) nint(atan2((double) (me->p_x - l->pl_x),
orbit.c:297:			      (double) (l->pl_y - me->p_y)) / M_PI * 128.);
orbit.c:300:    if ((l->pl_info & me->p_team) == 0) {
orbit.c:305:	me->p_stats.st_tarmsbomb++;
orbit.c:309:      l->pl_info |= me->p_team;
orbit.c:311:    me->p_flags &= ~(PFPLOCK | PFPLLOCK | PFTRACT | PFPRESS);
orbit.c:312:    me->p_flags |= PFORBIT;
orbit.c:313:    me->p_dir    = dir + 64;
orbit.c:314:    me->p_desdir = dir + 64;
orbit.c:315:    me->p_x      = l->pl_x + ORBDIST * Cos[dir];
orbit.c:316:    me->p_y      = l->pl_y + ORBDIST * Sin[dir];
orbit.c:317:    me->p_speed  = me->p_desspeed = 0;
orbit.c:318:    me->p_planet = l->pl_no;
phaser.c:27:  struct phaser *mine = &phasers[me->p_no];
phaser.c:33:  if (me->p_fuel < myship->s_phasercost) {
phaser.c:37:  if (me->p_flags & PFREPAIR) {
phaser.c:41:  if (me->p_flags & PFWEP) {
phaser.c:46:  if ((me->p_cloakphase) && (me->p_ship.s_type != ATT)) {
phaser.c:64:  myphrange = (PHASEDIST * me->p_ship.s_phaserdamage) / 100;
phaser.c:79:    if ((!(j->p_war & me->p_team)) && 
phaser.c:80:	(!(me->p_war & j->p_team)))
phaser.c:85:    A = j->p_x - me->p_x;
phaser.c:92:    B = j->p_y - me->p_y;
phaser.c:145:    if ((t->t_status != TMOVE) || (t->t_owner == me->p_no))
phaser.c:147:    if ((!(t->t_war & me->p_team)) &&
phaser.c:148:        (!(me->p_war & t->t_team)))
phaser.c:154:    A = t->t_x - me->p_x;
phaser.c:157:    B = t->t_y - me->p_y;
phaser.c:184:  mine->ph_fuse = me->p_ship.s_phaserfuse;
phaser.c:186:  me->p_fuel  -= myship->s_phasercost;
phaser.c:187:  me->p_wtemp += myship->s_phasercost / 10;
phaser.c:197:    mine->ph_damage = me->p_ship.s_phaserdamage * 
phaser.c:217:    target_plasma->t_whodet = me->p_no;
ping.c:91:      ping_lag = me->p_avrt;
ping.c:316:   me->p_avrt = M;
ping.c:318:   me->p_stdv = (int) sqrt((double) var);
ping.c:323:   me->p_pkls_s_c = (char) tloss_sc;
ping.c:324:   me->p_pkls_c_s = (char) tloss_cs;
plasma.c:47:   myship = &me->p_ship;
plasma.c:48:   if (me->p_special < 0) {
plasma.c:52:   sw = &me->p_weapons[me->p_special];
plasma.c:69:     if (me->p_ship.s_plasmacost < 0) {
plasma.c:74:     if (me->p_flags & PFWEP) {
plasma.c:78:     if (me->p_nplasmatorp == MAXPLASMA) {
plasma.c:79:       if (me->p_ship.s_type != ATT) {
plasma.c:85:     if (me->p_fuel < myship->s_plasmacost) {
plasma.c:90:     if (me->p_flags & PFREPAIR) {
plasma.c:94:     if ((me->p_cloakphase) && (me->p_ship.s_type != ATT)) {
plasma.c:100:     for (i = me->p_no * MAXPLASMA, k = firstPlasmaOf(me);
plasma.c:101:	  i < me->p_no * MAXPLASMA + MAXPLASMA; i++, k++) {
plasma.c:120:     me->p_nplasmatorp++;
plasma.c:122:     me->p_fuel -= myship->s_plasmacost;
plasma.c:125:     me->p_wtemp += (sw->sw_damage * 1.5 + 10); /* Heat weapons */
plasma.c:132:     me->p_wtemp += (myship->s_plasmacost / 10) - 8;  /* Heat weapons */
plasma.c:140:     k->t_owner = me->p_no;
plasma.c:141:     k->t_x = me->p_x;
plasma.c:142:     k->t_y = me->p_y;
plasma.c:145:     k->t_gspeed = (attributes & TVECTOR) ? torpGetVectorSpeed(me->p_dir, me->p_speed, course, sw->sw_speed) : sw->sw_speed * WARP1;
plasma.c:150:       k->t_dir = me->p_dir;
plasma.c:151:     k->t_war = me->p_hostile | me->p_swar;
plasma.c:152:     k->t_team = me->p_team;
plasma.c:159:     k->t_owner = me->p_no;
plasma.c:160:     k->t_x = me->p_x;
plasma.c:161:     k->t_y = me->p_y;
plasma.c:165:       ? torpGetVectorSpeed(me->p_dir, me->p_speed, course, myship->s_plasmaspeed)
plasma.c:169:		    (myship->s_type == ATT)) ? course : me->p_dir;
plasma.c:170:     k->t_war    = me->p_war;
plasma.c:171:     k->t_team   = me->p_team;
plasma.c:181:	if (me->p_nplasmatorp == MAXPLASMA) {
plasma.c:185:	if (!(me->p_flags & PFORBIT)) {
plasma.c:189:	l = &planets[me->p_planet];
plasma.c:190:	if (me->p_team == l->pl_owner) {
plasma.c:194:	if (!((me->p_swar | me->p_hostile) & l->pl_owner)) {
plasma.c:201:	me->p_nplasmatorp++;
plasma.c:202:	me->p_flags &= ~(PFSHIELD | PFREPAIR | PFBEAMDOWN | PFBEAMUP | PFBOMB);
plasma.c:203:	me->p_swar |= l->pl_owner;
plasma.c:204:	me->p_ship.s_maxarmies += me->p_special - 5;
plasma.c:206:	for (i = me->p_no * MAXPLASMA, k = firstPlasmaOf(me);
plasma.c:207:	    i < me->p_no * MAXPLASMA + MAXPLASMA; i++, k++) {
plasma.c:214:	k->t_owner = me->p_no;
plasma.c:215:	k->t_team = me->p_team;
plasma.c:230:	    k->t_x = me->p_x;
plasma.c:231:	    k->t_y = me->p_y;
plasma.c:238:	    me->p_nplasmatorp--;
plasma.c:276:	k->t_whodet = me->p_no;
plasma.c:284:        if (me->p_ntorp == MAXTORP) {
plasma.c:289:	if (me->p_flags & PFREPAIR) {
plasma.c:293:	if ((me->p_cloakphase) && (me->p_ship.s_type != ATT)) {
plasma.c:305:	me->p_ntorp++;
plasma.c:306:	me->p_wtemp += (sw->sw_damage/5);  /* Heat weapons */
plasma.c:308:	for (i = me->p_no * MAXTORP, j = firstTorpOf(me);	/* Find a free torp */
plasma.c:309:	    i < me->p_no * MAXTORP + MAXTORP; i++, j++) {
plasma.c:322:	j->t_owner = me->p_no;
plasma.c:323:	j->t_team = me->p_team;
plasma.c:324:	j->t_x = me->p_x;
plasma.c:325:	j->t_y = me->p_y;
plasma.c:329:	j->t_war = me->p_hostile | me->p_swar;
redraw.c:32:	testtime--;
redraw.c:36:	    pmessage2(0, MALL | MJOIN, "GOD->ALL", me->p_no,
redraw.c:38:                    ranks[me->p_stats.st_rank].name,
redraw.c:39:                      me->p_name);
redraw.c:40:	    ERROR(3,(".bypass person : %s - logged on\n",me->p_login));
redraw.c:41:	    me->p_stats.st_flags |= ST_CYBORG; /* mark for reference */
redraw.c:46:		me->p_stats.st_flags |= ST_CYBORG; /* mark for reference 7/27/91 TC */
redraw.c:48:		me->p_explode = 10;
redraw.c:49:		me->p_whydead = KQUIT;
redraw.c:50:		me->p_status = PEXPLODE;
redraw.c:54:		pmessage2(0, MALL | MJOIN, "GOD->ALL", me->p_no,
redraw.c:56:			ranks[me->p_stats.st_rank].name,
redraw.c:57:                	me->p_name);
redraw.c:72:    if (me->p_status == PFREE) {
redraw.c:78:    if (!Observer || me->p_status == PEXPLODE)
redraw.c:81:	if (me->p_status == PEXPLODE || me->p_status == PDEAD) {
redraw.c:84:	if (((me->p_status == PDEAD) || (me->p_status == POUTFIT))
redraw.c:85:	      && (me->p_ntorp <= 0) && (me->p_nplasmatorp <= 0)) {
redraw.c:117:    if (me->p_status != POBSERV) {
redraw.c:118:      if (me->p_status == PDEAD || me->p_status == PEXPLODE)
redraw.c:121:	    if (me->p_status == PFREE){
redraw.c:124:            me->p_status = POBSERV;
redraw.c:158:    if (me->p_flags & PFSELFDEST) {
redraw.c:159:        me->p_status = POUTFIT;
redraw.c:160:        me->p_whydead = KQUIT;
redraw.c:165:    if (me->p_flags & PFPLOCK) {
redraw.c:166:        if ( (me->p_playerl < 0) || (me->p_playerl >= MAXPLAYER) ){
redraw.c:168:            me->p_playerl = 0;         /* ensure a safe value */
redraw.c:169:	    me->p_flags &= ~(PFPLOCK); /* turn off player lock */
redraw.c:170:            me->p_x = -100000;         /* place me off the tactical */
redraw.c:171:            me->p_y = -100000;
redraw.c:176:	pl = &players[me->p_playerl];
redraw.c:178:	  me->p_x = -100000;
redraw.c:179:	  me->p_y = -100000;
redraw.c:180:	  /* me->p_flags &= ~(PFPLOCK); */
redraw.c:183:	else if ( (pl->p_team != me->p_team) && (pl->p_team != 0)) {
redraw.c:186:	  me->p_x = -100000;
redraw.c:187:	  me->p_y = -100000;
redraw.c:188:	  me->p_flags &= ~(PFPLOCK); /* turn off player lock */
redraw.c:191:	  me->p_ship.s_type = pl->p_ship.s_type;
redraw.c:192:	  me->p_x = pl->p_x;
redraw.c:193:	  me->p_y = pl->p_y;
redraw.c:194:	  me->p_shield = pl->p_shield;
redraw.c:195:	  me->p_damage = pl->p_damage;
redraw.c:196:	  me->p_armies = pl->p_armies;
redraw.c:197:	  me->p_fuel = pl->p_fuel;
redraw.c:198:	  me->p_wtemp = pl->p_wtemp;
redraw.c:199:	  me->p_etemp = pl->p_etemp;
redraw.c:200:	  me->p_flags = (pl->p_flags & ~(PFSELFDEST | PFPLOCK | PFPLLOCK)) |
redraw.c:201:	    (me->p_flags & (PFSELFDEST | PFPLOCK | PFPLLOCK));
redraw.c:204:	  /* me->p_flags |= PFCLOAK; */
redraw.c:205:	  me->p_dir = pl->p_dir;
redraw.c:206:	  me->p_flags |= PFOBSERV;  /* future clients may understand this */
redraw.c:207:	  me->p_tractor = pl->p_tractor;
redraw.c:209:	  me->p_speed = pl->p_speed;
redraw.c:210:	  /* me->p_kills = pl->p_kills;  Very bad: will confuse enemies */
redraw.c:216:    if (me->p_flags & PFPLLOCK) {
redraw.c:217:        if ( (me->p_planet < 0) || (me->p_planet >= MAXPLANETS) ){
redraw.c:219:  	    me->p_planet = 0;            /* ensure a safe value */
redraw.c:220:	    me->p_flags &= ~(PFPLLOCK);  /* turn off planet lock */
redraw.c:221:	    me->p_x = -100000;           /* place me off the tactical */
redraw.c:222:	    me->p_y = -100000;
redraw.c:227:	pln = &planets[me->p_planet];
redraw.c:228:	if (pln->pl_owner != me->p_team) {
redraw.c:229:	    if ( (me->p_x == pln->pl_x) && (me->p_y == pln->pl_y) )
redraw.c:234:	    me->p_x = -100000;
redraw.c:235:	    me->p_y = -100000;
redraw.c:236:	    me->p_flags &= ~(PFPLLOCK); /* turn off planet lock */
redraw.c:238:	    me->p_x = pln->pl_x;
redraw.c:239:	    me->p_y = pln->pl_y;
redraw.c:245:    me->p_x = -100000;
redraw.c:246:    me->p_y = -100000;
redraw.c:269:    if (me->p_flags & PFSELFDEST) {
redraw.c:270:	if ((me->p_updates >= selfdest) ||
redraw.c:271:	    ((me->p_flags & PFGREEN) && (me->p_damage == 0)
redraw.c:272:		&& (me->p_shield == me->p_ship.s_maxshield))) {
redraw.c:273:	    me->p_flags &= ~PFSELFDEST;
redraw.c:274:	    me->p_explode = 10;
redraw.c:275:	    me->p_whydead = KQUIT;
redraw.c:276:	    me->p_status = PEXPLODE;
redraw.c:278:	    switch ((selfdest - me->p_updates)/10) {
redraw.c:284:			(selfdest - me->p_updates) / 10);
redraw.c:292:    if (me->p_flags & PFREFITTING) {
redraw.c:294:	if (lastRefitValue != (rdelay - me->p_updates)/10) {
redraw.c:295:	    lastRefitValue = (rdelay - me->p_updates)/10; /* CSE to the rescue? */
redraw.c:335:    if (me->p_flags & PFWAR) {
redraw.c:337:	if (lastWarValue != (delay - me->p_updates)/10) {
redraw.c:338:	    lastWarValue = (delay - me->p_updates)/10; /* CSE to the rescue? */
redraw.c:387:    if (me->p_flags & PFBOMB) {
redraw.c:388:	if (planets[me->p_planet].pl_armies < 5) {
redraw.c:390:		    planets[me->p_planet].pl_armies); /* nifty info feature 2/14/92 TMC */
redraw.c:391:	    me->p_flags &= ~PFBOMB;
redraw.c:395:		planets[me->p_planet].pl_name,
redraw.c:396:		planets[me->p_planet].pl_armies);
redraw.c:400:    if (me->p_ship.s_type == ASSAULT)
redraw.c:401:	troop_capacity = (((me->p_kills * 3) > myship->s_maxarmies) ?
redraw.c:402:	    myship->s_maxarmies : (int) (me->p_kills * 3));
redraw.c:403:    else if (me->p_ship.s_type != STARBASE)
redraw.c:404:	troop_capacity = (((me->p_kills * 2) > myship->s_maxarmies) ?
redraw.c:405:	    myship->s_maxarmies : (int) (me->p_kills * 2));
redraw.c:407:	troop_capacity = me->p_ship.s_maxarmies;
redraw.c:409:    if (me->p_flags & PFBEAMUP) {
redraw.c:410:	if (me->p_flags & PFORBIT) {
redraw.c:411:	    if (planets[me->p_planet].pl_armies < 5) {
redraw.c:413:			planets[me->p_planet].pl_name);
redraw.c:414:		me->p_flags &= ~PFBEAMUP;
redraw.c:415:	    } else if (me->p_armies == troop_capacity) {
redraw.c:417:		me->p_flags &= ~PFBEAMUP;
redraw.c:419:		new_warning(UNDEF, "Beaming up.  (%d/%d)", me->p_armies, troop_capacity);
redraw.c:421:	} else if (me->p_flags & PFDOCK) {
redraw.c:422:	    if (players[me->p_docked].p_armies == 0) {
redraw.c:424:			players[me->p_docked].p_name);
redraw.c:425:		me->p_flags &= ~PFBEAMUP;
redraw.c:426:	    } else if (me->p_armies == troop_capacity) {
redraw.c:428:		me->p_flags &= ~PFBEAMUP;
redraw.c:430:		new_warning(UNDEF, "Beaming up.  (%d/%d)", me->p_armies, troop_capacity);
redraw.c:435:    if (me->p_flags & PFBEAMDOWN) {
redraw.c:436:	if (me->p_armies == 0) {
redraw.c:437:	    if (me->p_flags & PFDOCK) {
redraw.c:438:		new_warning(UNDEF, "No more armies to beam down to Starbase %s.", players[me->p_docked].p_name);
redraw.c:441:			planets[me->p_planet].pl_name);
redraw.c:443:	    me->p_flags &= ~PFBEAMDOWN;
redraw.c:444:	} else if (me->p_flags & PFORBIT) {
redraw.c:446:		me->p_armies,
redraw.c:448:		planets[me->p_planet].pl_name,
redraw.c:449:		planets[me->p_planet].pl_armies);
redraw.c:450:	} else if (me->p_flags & PFDOCK) {
redraw.c:451:	    if (players[me->p_docked].p_armies ==
redraw.c:452:		players[me->p_docked].p_ship.s_maxarmies) {
redraw.c:454:		    players[me->p_docked].p_name);
redraw.c:455:		me->p_flags &= ~PFBEAMDOWN;
redraw.c:458:		    me->p_armies,
redraw.c:460:		    players[me->p_docked].p_name,
redraw.c:461:		    players[me->p_docked].p_armies);
redraw.c:465:    if (me->p_flags & PFREPAIR) {
redraw.c:466:	if ((me->p_damage == 0) && (me->p_shield == me->p_ship.s_maxshield))
redraw.c:467:	    me->p_flags &= ~PFREPAIR;
redraw.c:469:    if ((me->p_flags & PFPLOCK) && (!Observer)) {/* set course to player x */
redraw.c:472:	pl = &players[me->p_playerl];
redraw.c:474:	    me->p_flags &= ~PFPLOCK;
redraw.c:477:	if (me->p_flags & PFTWARP){
redraw.c:480:	     me->p_flags &= ~PFTWARP;
redraw.c:481:	     me->p_speed = 3;
redraw.c:486:	     me->p_flags &= ~PFTWARP;
redraw.c:487:	     me->p_speed = 3;
redraw.c:490:	  if(me->p_etemp > me->p_ship.s_maxegntemp - 10){
redraw.c:492:	     me->p_flags &= ~PFTWARP;
redraw.c:493:	     me->p_speed = 3;
redraw.c:497:	  if (me->p_fuel < (int) (me->p_ship.s_maxfuel/8)){
redraw.c:499:	     me->p_flags &= ~PFTWARP;
redraw.c:500:	     me->p_speed = 3;
redraw.c:503:	  else if(!(me->p_flags & PFPLOCK)){
redraw.c:505:	     me->p_flags &= ~PFTWARP;
redraw.c:506:	     me->p_speed = 3;
redraw.c:511:	    dist = hypot((double) (me->p_x - pl->p_x),
redraw.c:512:		(double) (me->p_y - pl->p_y));
redraw.c:513:	    if (dist-(DOCKDIST/2) < (11500 * me->p_speed * me->p_speed) /
redraw.c:514:		    me->p_ship.s_decint) {
redraw.c:515:		if (me->p_desspeed > 2) {
redraw.c:516:		    set_speed(me->p_desspeed-1);
redraw.c:520:	if ((dist < 2*DOCKDIST) && (me->p_flags & PFTWARP)){
redraw.c:521:	    me->p_x = pl->p_x; me->p_y = pl->p_y;
redraw.c:522:	    me->p_speed=2;
redraw.c:523:	    me->p_flags &= ~(PFPLOCK);
redraw.c:525:	    me->p_flags &= ~(PFTWARP);
redraw.c:528:	    if ((dist < DOCKDIST) && (me->p_speed <= 2))  {
redraw.c:529:		me->p_flags &= ~PFPLOCK;
redraw.c:533:	if (me->p_flags & PFPLOCK) {
redraw.c:536:	    if (me->p_flags & PFTWARP)
redraw.c:537:		me->p_dir = course;
redraw.c:543:    if ((me->p_flags & PFPLLOCK)&&(!Observer)) {/* set course to planet x */
redraw.c:546:	pln = &planets[me->p_planet];
redraw.c:547:	dist = hypot((double) (me->p_x - pln->pl_x),
redraw.c:548:	    (double) (me->p_y - pln->pl_y));
redraw.c:554:	if (dist-(ORBDIST/2) < (11500 * me->p_speed * me->p_speed) /
redraw.c:555:	        me->p_ship.s_decint) {
redraw.c:556:	    if (me->p_desspeed > 2) {
redraw.c:561:	if ((dist < ENTORBDIST) && (me->p_speed <= 2))  {
redraw.c:562:	    me->p_flags &= ~PFPLLOCK;
redraw.c:568:            if ( (ABS(course-me->p_desdir) > 2) || (dist < ENTORBDIST*10) )
redraw.c:577:	return((u_char) nint(atan2((double) (x - me->p_x),
redraw.c:578:	    (double) (me->p_y - y)) / 3.14159 * 128.));
rsa_key.c:113:             me->p_name,
rsa_key.c:114:             me->p_login,
rsa_key.c:125:	me->p_name,key.client_type,key.architecture);
smessage.c:102:    if ((cur->m_flags & MINDIV) && (cur->m_recpt == me->p_no) && 
smessage.c:103:	(cur->m_from == me->p_no))
socket.c:650:      if (me->p_fuel < 61000)
socket.c:700:    if(send_short && (me->p_fuel < 61000))
socket.c:722:     (me->p_status == PALIVE
socket.c:724:      || me->p_status == POBSERV))
socket.c:758:  if(send_short &&  me->p_fuel < 61000  ){ /* A little margin ... */
socket.c:759:    if(ntohs(clientSelfShip.damage) != me->p_damage ||
socket.c:760:       ntohs(clientSelfShip.shield) != me->p_shield ||
socket.c:761:       ntohs(clientSelfShip.fuel) != me->p_fuel ||
socket.c:762:       ntohs(clientSelfShip.etemp) != me->p_etemp ||
socket.c:763:       ntohs(clientSelfShip.wtemp) != me->p_wtemp){
socket.c:767:      clientSelfShip.pad1 = me->p_flags & 255; /* For future use */
socket.c:768:      clientSelfShip.damage=htons(me->p_damage);
socket.c:769:      clientSelfShip.shield=htons(me->p_shield);
socket.c:770:      clientSelfShip.fuel=htons(me->p_fuel);
socket.c:771:      clientSelfShip.etemp=htons(me->p_etemp);
socket.c:772:      clientSelfShip.wtemp=htons(me->p_wtemp);
socket.c:776:    if(clientSelfShort.pnum != me->p_no ||
socket.c:777:       clientSelfShort.hostile != me->p_hostile ||
socket.c:778:       clientSelfShort.swar != me->p_swar ||
socket.c:779:       clientSelfShort.armies != me->p_armies ||
socket.c:780:       clientSelfShort.whydead != me->p_whydead ||
socket.c:781:       clientSelfShort.whodead != me->p_whodead ||
socket.c:782:       ntohl(clientSelfShort.flags) != me->p_flags ||
socket.c:786:      clientSelfShort.pnum = me->p_no;
socket.c:787:      clientSelfShort.hostile = me->p_hostile;
socket.c:788:      clientSelfShort.swar = me->p_swar;
socket.c:789:      clientSelfShort.armies = me->p_armies;
socket.c:790:      clientSelfShort.whydead = me->p_whydead;
socket.c:791:      clientSelfShort.whodead = me->p_whodead;
socket.c:792:      clientSelfShort.flags = htonl(me->p_flags);
socket.c:799:    if (ntohl(clientSelf.fuel) != me->p_fuel ||
socket.c:800:	ntohl(clientSelf.shield) != me->p_shield ||
socket.c:801:	ntohl(clientSelf.damage) != me->p_damage ||
socket.c:802:	ntohs(clientSelf.etemp) != me->p_etemp ||
socket.c:803:	ntohs(clientSelf.wtemp) != me->p_wtemp ||
socket.c:804:	ntohl(clientSelf.flags) != me->p_flags || 
socket.c:805:	clientSelf.armies != me->p_armies ||
socket.c:806:	clientSelf.swar != me->p_swar ||
socket.c:807:	ntohs(clientSelf.whydead) != me->p_whydead ||
socket.c:808:	ntohs(clientSelf.whodead) != me->p_whodead ||
socket.c:809:	clientSelf.pnum != me->p_no) {
socket.c:815:	if (    ntohl(clientSelf.flags) != me->p_flags ||
socket.c:816:	    clientSelf.armies != me->p_armies ||
socket.c:817:	    clientSelf.swar != me->p_swar) {
socket.c:820:	if (    ntohs(clientSelf.whydead) != me->p_whydead ||
socket.c:821:	    ntohs(clientSelf.whodead) != me->p_whodead ||
socket.c:822:	    clientSelf.pnum != me->p_no) {
socket.c:827:      clientSelf.pnum=me->p_no;
socket.c:828:      clientSelf.flags=htonl(me->p_flags);
socket.c:829:      clientSelf.swar=me->p_swar;
socket.c:830:      clientSelf.hostile=me->p_hostile;
socket.c:831:      clientSelf.armies=me->p_armies;
socket.c:832:      clientSelf.shield=htonl(me->p_shield);
socket.c:833:      clientSelf.fuel=htonl(me->p_fuel);
socket.c:834:      clientSelf.etemp=htons(me->p_etemp);
socket.c:835:      clientSelf.wtemp=htons(me->p_wtemp);
socket.c:836:      clientSelf.whydead=htons(me->p_whydead);
socket.c:837:      clientSelf.whodead=htons(me->p_whodead);
socket.c:838:      clientSelf.damage=htonl(me->p_damage);
socket.c:839:      /* clientSelf.tractor=(char)me->p_tractor |0x40;		 ATM - visible tractor */
socket.c:901:    if ((pl!=me && (pl->p_swar & me->p_team)!=hostile->war) ||
socket.c:902:	(pl!=me && (pl->p_hostile & me->p_team)!=hostile->hostile) ||
socket.c:910:	hostile->war=(pl->p_swar & me->p_team);
socket.c:911:	hostile->hostile=(pl->p_hostile & me->p_team);
socket.c:1024:    if ((!hiddenenemy || pl->p_team == me->p_team || 
socket.c:1069:	  (ntohl(cpl->x) < me->p_x - SCALE*WINSIDE/2 ||
socket.c:1070:	   ntohl(cpl->x) > me->p_x + SCALE*WINSIDE/2 ||
socket.c:1071:	   ntohl(cpl->y) > me->p_y + SCALE*WINSIDE/2 ||
socket.c:1072:	   ntohl(cpl->y) < me->p_y - SCALE*WINSIDE/2) &&
socket.c:1073:	  (y > me->p_y + SCALE*WINSIDE/2 ||
socket.c:1074:	   x > me->p_x + SCALE*WINSIDE/2 ||
socket.c:1075:	   x < me->p_x - SCALE*WINSIDE/2 ||
socket.c:1076:	   y < me->p_y - SCALE*WINSIDE/2)) continue;
socket.c:1256:    if ((t->t_y > me->p_y + SCALE*WINSIDE/2) ||
socket.c:1257:	(t->t_y < me->p_y - SCALE*WINSIDE/2) ||
socket.c:1258:	(t->t_x > me->p_x + SCALE*WINSIDE/2) ||
socket.c:1259:	(t->t_x < me->p_x - SCALE*WINSIDE/2) ||
socket.c:1283:	((t->t_war & me->p_team) != tpi->war)) {
socket.c:1285:      tpi->war    = t->t_war & me->p_team;
socket.c:1331:    if ((t->t_y > me->p_y + SCALE*WINSIDE/2) ||
socket.c:1332:	(t->t_y < me->p_y - SCALE*WINSIDE/2) ||
socket.c:1333:	(t->t_x > me->p_x + SCALE*WINSIDE/2) ||
socket.c:1334:	(t->t_x < me->p_x - SCALE*WINSIDE/2) ||
socket.c:1358:	((t->t_war & me->p_team) != tpi->war)) {
socket.c:1360:      tpi->war    = t->t_war & me->p_team;
socket.c:1384:      if (pl->p_y > me->p_y + SCALE*WINSIDE/2 ||
socket.c:1385:	  pl->p_x > me->p_x + SCALE*WINSIDE/2 ||
socket.c:1386:	  pl->p_x < me->p_x - SCALE*WINSIDE/2 ||
socket.c:1387:	  pl->p_y < me->p_y - SCALE*WINSIDE/2) {
socket.c:1516:    if (((plan->pl_info & me->p_team)==0) && (pl->info & me->p_team)) {
socket.c:1534:      if (plan->pl_info & me->p_team &&
socket.c:1615:	 (cur->m_flags & MTEAM && cur->m_recpt & me->p_team) ||
socket.c:1616:	 (cur->m_flags & MINDIV && cur->m_recpt == me->p_no) 
socket.c:1619:	     (cur->m_flags & MGOD && cur->m_recpt == me->p_no) {
socket.c:1746:	if ((cur->m_recpt == me->p_team) && !me->gen_distress && 
socket.c:1827:    if (oldstatus != PALIVE || (me != NULL && me->p_status != PALIVE))
socket.c:1910:	  UDPDIAG(("*** UDP disconnected for %s\n", me->p_name));
socket.c:1994:	UDPDIAG(("*** UDP disconnected for %s\n", me->p_name));
socket.c:2189:	   (me==NULL || !(me->p_flags & (PFWAR|PFREFITTING
socket.c:2213:	if (me && me->p_flags & PFSELFDEST
socket.c:2218:	  me->p_flags &= ~PFSELFDEST;
socket.c:2278:  me->p_flags &= ~(PFPLOCK | PFPLLOCK);
socket.c:2298:    me->p_flags &= ~(PFREPAIR);
socket.c:2308:    me->p_flags &= ~PFORBIT;
socket.c:2309:    if (me->p_flags & PFDOCK) {
socket.c:2310:      players[me->p_docked].p_docked--;
socket.c:2311:      players[me->p_docked].p_port[me->p_port[0]] = VACANT;
socket.c:2312:      me->p_flags &= ~PFDOCK;
socket.c:2357:    me->p_flags &= ~(PFBOMB);
socket.c:2369:    me->p_flags &= ~(PFBEAMUP | PFBEAMDOWN);
socket.c:2397:   me->p_flags |= PFCOPILOT;
socket.c:2399:   me->p_flags &= ~PFCOPILOT;
socket.c:2486:  if (t->t_owner != me->p_no) 
socket.c:2516:    me->p_flags &= ~(PFTRACT | PFPRESS);
socket.c:2519:  if (me->p_flags & PFCLOAK) {
socket.c:2523:  if (target<0 || target>=MAXPLAYER || target==me->p_no) return;
socket.c:2526:  if (hypot((double) me->p_x-player->p_x,
socket.c:2527:	    (double) me->p_y-player->p_y) < 
socket.c:2528:      ((double) TRACTDIST) * me->p_ship.s_tractrng) {
socket.c:2533:    if (me->p_flags & PFDOCK) {
socket.c:2534:      players[me->p_docked].p_docked--;
socket.c:2535:      players[me->p_docked].p_port[me->p_port[0]] = VACANT;
socket.c:2538:	me->p_flags &= ~(PFORBIT | PFDOCK);
socket.c:2539:    me->p_tractor = target;
socket.c:2540:    me->p_flags |= PFTRACT;
socket.c:2558:    me->p_flags &= ~(PFTRACT | PFPRESS);
socket.c:2561:  if (me->p_flags & PFCLOAK) {
socket.c:2565:  if (target<0 || target>=MAXPLAYER || target==me->p_no) return;
socket.c:2568:  if (hypot((double) me->p_x-player->p_x,
socket.c:2569:	    (double) me->p_y-player->p_y) < 
socket.c:2570:      ((double) TRACTDIST) * me->p_ship.s_tractrng) {
socket.c:2575:    if (me->p_flags & PFDOCK) {
socket.c:2576:      players[me->p_docked].p_docked--;
socket.c:2577:      players[me->p_docked].p_port[me->p_port[0]] = VACANT;
socket.c:2580:    me->p_flags &= ~(PFORBIT | PFDOCK);
socket.c:2581:    me->p_tractor = target;
socket.c:2582:    me->p_flags |= (PFTRACT | PFPRESS);
socket.c:2677:    balance=balance-(thistime-lasttime);
socket.c:2693:  sprintf(addrbuf, " %c%c->", teamlet[me->p_team], shipnos[me->p_no]);
socket.c:2724:        if ((packet->indiv == me->p_no) & (strlen(packet->mesg) == 1))
socket.c:2729:	                  sprintf(addrbuf, "GOD->%c%c ", teamlet[me->p_team],
socket.c:2730:		            shipnos[me->p_no]);
socket.c:2731:	                  pmessage(me->p_no, MINDIV, addrbuf,"[u] list upgrades, [i] inventory");
socket.c:2732:			  pmessage(me->p_no, MINDIV, addrbuf,"[?] this help message, [k] list kills, [:] who's a borg? (not implemented)");
socket.c:2743:	    if ((me->p_special < 0) && (packet->indiv == me->p_no)) {
socket.c:2748:	    if (packet->indiv == me->p_no) {
socket.c:2749:	        sprintf(addrbuf, "UPG->%c%c ", teamlet[me->p_team],
socket.c:2750:		    shipnos[me->p_no]);
socket.c:2751:	        pmessage(me->p_no, MINDIV, addrbuf,"Inventory:");
socket.c:2753:	    else if (dude->p_team == me->p_team) {
socket.c:2756:		    teamlet[me->p_team], shipnos[me->p_no]);
socket.c:2757:	        pmessage(me->p_no, MINDIV, addrbuf,"Our inventory:");
socket.c:2759:		    pmessage(me->p_no, MINDIV, addrbuf,"None.");
socket.c:2766:		    teamlet[me->p_team], shipnos[me->p_no]);
socket.c:2770:	        pmessage(me->p_no, MINDIV, addrbuf,buf);
socket.c:2773:	    if (dude->p_team == me->p_team) {
socket.c:2782:		    pmessage(me->p_no, MINDIV, addrbuf,buf);
socket.c:2803:		    pmessage(me->p_no, MINDIV, addrbuf,buf);
socket.c:2805:		    pmessage(me->p_no, MINDIV, addrbuf,"No special weapons");
socket.c:2811:	    if ((me->p_upgrades == 0.0) && (dude->p_no == me->p_no)) {
socket.c:2816:	    if (packet->indiv == me->p_no) {
socket.c:2817:	        sprintf(addrbuf, "UPG->%c%c ", teamlet[me->p_team],
socket.c:2818:		    shipnos[me->p_no]);
socket.c:2819:	        pmessage(me->p_no,
socket.c:2822:	    else if (dude->p_team == me->p_team) {
socket.c:2825:		    teamlet[me->p_team], shipnos[me->p_no]);
socket.c:2826:	        pmessage(me->p_no,
socket.c:2829:		    pmessage(me->p_no, MINDIV, addrbuf,"None.");
socket.c:2835:		    teamlet[me->p_team], shipnos[me->p_no]);
socket.c:2840:	        pmessage(me->p_no, MINDIV, addrbuf,buf);
socket.c:2843:	    if (me->p_team == dude->p_team)
socket.c:2846:		    if (dude->p_no == me->p_no)
socket.c:2853:		    pmessage(me->p_no, MINDIV, addrbuf, buf);
socket.c:2883:		    pmessage(me->p_no, MINDIV, addrbuf,buf);
socket.c:2885:		    pmessage(me->p_no, MINDIV, addrbuf,"none");
socket.c:2891:	    if (dude->p_team == me->p_team) {
socket.c:2920:  pmessage2(packet->indiv, group, addrbuf, me->p_no,"%s",packet->mesg);
socket.c:2935:  me->p_flags |= PFSELFDEST;
socket.c:2936:  selfdest = me->p_updates + 100;
socket.c:2938:  if (me->p_ship.s_type==STARBASE) selfdest = me->p_updates + 600;
socket.c:2999:  fprintf(logfile, "Joining: %s, (%c) %s\t<%s@%s>\n", me->p_name,
socket.c:3000:	  shipnos[me->p_no],
socket.c:3002:	  me->p_login, /* debug 2/21/92 TMC */
socket.c:3005:	  me->p_monitor);
socket.c:3007:  me->p_full_hostname);
socket.c:3071:	      n, errno, me->p_login, me->p_monitor);
socket.c:3074:	      n, errno, me->p_login, me->p_full_hostname);
socket.c:3090:  if (me->p_ship.s_type == STARBASE) {
socket.c:3091:    me->p_docked = 0;
socket.c:3093:      if (me->p_port[i] != VACANT)
socket.c:3094:	players[me->p_port[i]].p_flags &= ~PFDOCK;
socket.c:3095:      me->p_port[i] = VACANT;  
socket.c:3098:      me->p_flags |= PFDOCKOK;
socket.c:3100:      me->p_flags &= ~PFDOCKOK;
socket.c:3154:  if (me->p_ship.s_type != STARBASE)   /* Allow SB's 10 ups/sec */
socket.c:3182:  me->p_timerdelay = timerDelay / 100000;
socket.c:3183:  if (!me->p_process)
socket.c:3254:  encryptReservedPacket(&mysp, &mycp, serverName, me->p_no);
socket.c:3325:  encryptReservedPacket(&mysp, &mycp, serverName, me->p_no);
socket.c:3379:         ERROR(1,( "ping on for %s@%s\n", me->p_name, me->p_monitor));
socket.c:3392:         ERROR(1,( "ping off for %s@%s\n", me->p_name, me->p_monitor));
socket.c:3409:    me->p_df = packet->def;
socket.c:3410:    me->p_tg = packet->targ;
socket.c:3412:    if (me->p_df > 100)
socket.c:3413:	me->p_df = 100;
socket.c:3415:    me->p_flags |= PFBPROBOT;
socket.c:3419:	me->p_mapchars[0], me->p_mapchars[1],
socket.c:3420:	me->p_name, me->p_df, me->p_tg - 1);
socket.c:3470:		me->p_name));
socket.c:3474:	UDPDIAG(("Receieved UDP verify from %s\n", me->p_name));
socket.c:3475:	UDPDIAG(("--- UDP connection established to %s\n", me->p_name));
socket.c:3499:		mode, me->p_name));
socket.c:3511:		V_UDPDIAG(("Sending full update to %s\n", me->p_name));
socket.c:3535:	    UDPDIAG(("Switching %s to UDP mode %d\n", me->p_name, mode));
socket.c:3542:	V_UDPDIAG(("Sending full update to %s\n", me->p_name));
socket.c:3549:	(packet->request == COMM_TCP) ? "TCP" : "UDP", me->p_name));
socket.c:3558:		    me->p_name));
socket.c:3569:	    UDPDIAG(("Rcvd TCP req from %s while in TCP mode\n", me->p_name));
socket.c:3586:	    UDPDIAG(("Rejected UDP request from %s\n", me->p_name));
socket.c:3595:		UDPDIAG(("Server UDP (rejected %s)\n", me->p_name));
socket.c:3604:			me->p_name));
socket.c:3614:		    udpLocalPort, me->p_name));
socket.c:3640:	UDPDIAG(("Closed UDP socket for %s\n", me->p_name));
socket.c:3709:	UDPDIAG(("Unable to connect() to %s on port %d\n", me->p_name,
socket.c:3716:	me->p_name, udpClientPort, remoteaddr));
socket.c:3800:    ssp->pad1 = (((unsigned int)me->p_flags >> 8) & 0xff); /* S_P2 */
socket.c:3838:	UDPDIAG(("*** UDP dis-Connected for %s\n", me->p_name));
socket.c:3944:	clientPlanets[i].info |= me->p_team;
socket.c:4307:      sprintf(buf, "%s %s@%s \"%s\"", tbuf, me->p_login, me->p_monitor,
socket.c:4325:         sprintf(addrb, "GOD->%c%c", teamlet[me->p_team], shipnos[me->p_no]);
socket.c:4326:         pmessage(me->p_no, MINDIV, addrb, "Thank you, %s, for your comments.", 
socket.c:4327:		me->p_login);
socket.c:4328:         pmessage(me->p_no, MINDIV, addrb, "Your message has been logged.");
socket.c:4342:   if ((packet->group == MINDIV) && (packet->indiv == me->p_no)) {
socket.c:4344:           sprintf(player, "GOD->%c%c", teamlet[me->p_team], shipnos[me->p_no]);
socket.c:4348:           pmessage(me->p_no, MINDIV, player, 
socket.c:4350:               me->p_name);
socket.c:4369:/*    if (packet->indiv != me->p_no) return FALSE;*/
socket.c:4375:    if ((who == me->p_no) && (*(s+1) == 'D')) {		/* NBT */
socket.c:4385:    else if ((who == me->p_no) && (*(s+1) == 'M')) {         /* NBT */
socket.c:4395:    if ((who == me->p_no) || (*s == ' ')) { /* check for borg call 4/6/92 TC */
socket.c:4646:	if (p->pnum == me->p_no){
socket.c:4667:		dx = x - me->p_x;
socket.c:4668:		dy = y - me->p_y;
socket.c:4690:		    dx = x/SCALE - me->p_x/SCALE + WINSIDE/2;
socket.c:4691:		    dy = y/SCALE - me->p_y/SCALE + WINSIDE/2;
socket.c:4705:		dx = x - me->p_x;
socket.c:4706:		dy = y - me->p_y;
socket.c:4872:	if (torp->t_owner==me->p_no) {
socket.c:4919:	    dx = torp->t_x - me->p_x;
socket.c:4920:	    dy = torp->t_y - me->p_y;
socket.c:4944:            dx = torp->t_x/SCALE - me->p_x/SCALE + WINSIDE/2;
socket.c:4945:            dy = torp->t_y/SCALE - me->p_y/SCALE + WINSIDE/2;
socket.c:4962:	    if (torp->t_y > me->p_y + SCALE*WINSIDE/2 ||
socket.c:4963:		torp->t_x > me->p_x + SCALE*WINSIDE/2 ||
socket.c:4964:		torp->t_x < me->p_x - SCALE*WINSIDE/2 ||
socket.c:4965:		torp->t_y < me->p_y - SCALE*WINSIDE/2 ||
socket.c:4977:		    (torp->t_war & me->p_team)!=tpi->war) {
socket.c:4978:		   if ( (torp->t_war & me->p_team) == tpi->war){
socket.c:5001:		    tpi->war=torp->t_war & me->p_team;
socket.c:5018:	    dx = torp->t_x - me->p_x;
socket.c:5020:	    dy = torp->t_y - me->p_y;
socket.c:5024:            dx = torp->t_x/SCALE - me->p_x/SCALE + WINSIDE/2;
socket.c:5025:            dy = torp->t_y/SCALE - me->p_y/SCALE + WINSIDE/2;
socket.c:5109:	if (torp->t_owner==me->p_no) {
socket.c:5153:	    dx = torp->t_x - me->p_x;
socket.c:5154:	    dy = torp->t_y - me->p_y;
socket.c:5178:              dx = torp->t_x/SCALE - me->p_x/SCALE + WINSIDE/2;
socket.c:5179:              dy = torp->t_y/SCALE - me->p_y/SCALE + WINSIDE/2;
socket.c:5195:	    if (torp->t_y > me->p_y + SCALE*WINSIDE/2 ||
socket.c:5196:		torp->t_x > me->p_x + SCALE*WINSIDE/2 ||
socket.c:5197:		torp->t_x < me->p_x - SCALE*WINSIDE/2 ||
socket.c:5198:		torp->t_y < me->p_y - SCALE*WINSIDE/2 ||
socket.c:5210:		    (torp->t_war & me->p_team)!=tpi->war) {
socket.c:5211:		   if ((torp->t_war & me->p_team) == tpi->war){
socket.c:5237:		    tpi->war=torp->t_war & me->p_team;
socket.c:5254:	    dx = torp->t_x - me->p_x;
socket.c:5256:	    dy = torp->t_y - me->p_y;
socket.c:5260:              dx = torp->t_x/SCALE - me->p_x/SCALE + WINSIDE/2;
socket.c:5261:              dy = torp->t_y/SCALE - me->p_y/SCALE + WINSIDE/2;
socket.c:5347:  if (me->p_status != PFREE) freeslot(me); /* Clear slot if needed */
startrobot.c:34:	switch (me->p_team) {
timecheck.c:56:	    sprintf(from_str,"GOD->%2s", me->p_mapchars);
timecheck.c:57:	    pmessage(me->p_no, MINDIV, from_str,
torp.c:64:  if (me->p_updates == last_torp_fired_update)
torp.c:67:  if (me->p_flags & PFWEP) {
torp.c:71:  if (me->p_ntorp == MAXTORP) {
torp.c:75:  if (me->p_fuel < myship->s_torpcost) {
torp.c:79:  if (me->p_flags & PFREPAIR) {
torp.c:83:  if ((me->p_cloakphase) && (me->p_ship.s_type != ATT)) {
torp.c:92:  if (topgun && ((me->p_ship).s_type != STARBASE)) {
torp.c:94:    if ((delta = ((int) me->p_dir - (int) course)) < 0)
torp.c:115:  last_torp_fired_update = me->p_updates;
torp.c:119:  me->p_ntorp++;
torp.c:120:  me->p_fuel -= myship->s_torpcost;
torp.c:121:  me->p_wtemp += (myship->s_torpcost / 10) - 10;	/* Heat weapons */
torp.c:131:  k->t_owner = me->p_no;
torp.c:132:  k->t_x = me->p_x;
torp.c:133:  k->t_y = me->p_y;
torp.c:137:    torpGetVectorSpeed(me->p_dir, me->p_speed, course, myship->s_torpspeed) :
torp.c:141:  k->t_war    = me->p_war;
torp.c:142:  k->t_team   = me->p_team;
transwarp.c:33:   if (me->p_status != PALIVE)
transwarp.c:35:   if (me->p_flags & PFENG) {
transwarp.c:39:   if (me->p_ship.s_type == STARBASE) {
transwarp.c:43:   j = &players[me->p_playerl];
transwarp.c:44:   if (!(me->p_flags & PFPLOCK) ||
transwarp.c:45:       ((me->p_flags & PFPLOCK) && (j->p_ship.s_type != STARBASE))) {
transwarp.c:49:   if (!(me->p_flags & PFGREEN)) {
transwarp.c:57:   if (!((!(j->p_war & me->p_team)) &&
transwarp.c:58:	 (!(me->p_war & j->p_team)))) {
transwarp.c:66:   if (me->p_speed > MIN_INITIAL_SPEED) {
transwarp.c:70:   if (me->p_flags & PFREPAIR) {
transwarp.c:74:   if (me->p_flags & PFCLOAK) {
transwarp.c:78:   if (me->p_flags & PFORBIT) {
transwarp.c:82:   if (me->p_damage > (int) (me->p_ship.s_maxdamage / 3)) {
transwarp.c:86:   if (me->p_fuel < (int) (me->p_ship.s_maxfuel / 2)) {
transwarp.c:91:   me->p_flags &= ~(PFPLOCK|PFPLLOCK|PFDOCK);
transwarp.c:92:   me->p_flags |= (PFSHIELD | PFTWARP | PFPLOCK);
transwarp.c:94:   me->p_desspeed = (twarpSpeed) ? twarpSpeed : TRANSWARP_SPEED;
transwarp.c:97:   me->p_desspeed = 5 * me->p_ship.s_maxspeed;
transwarp.c:98:   maxspeed =  5 * ((me->p_ship.s_maxspeed + 2) -
transwarp.c:99:	       (int)( (me->p_ship.s_maxspeed + 1) *
transwarp.c:100:               ((float) me->p_damage / (float) (me->p_ship.s_maxdamage))));
transwarp.c:101:   if(me->p_desspeed > maxspeed)
transwarp.c:102:      me->p_desspeed = maxspeed;
transwarp.c:104:   if (me->p_speed == 0)
transwarp.c:105:      me->p_speed++;
