local player
| 511 | |
| 512 | if(!(p->isspectating() && spect3rd)) drawradarent(ppv.x, ppv.y, p->yaw, (p->state==CS_ALIVE || p->state==CS_EDITING) ? (isattacking(p) ? 2 : 0) : 1, 2, iconsize, isattacking(p), "%s", colorname(p)); // local player |
| 513 | loopv(players) // other players |
| 514 | { |
| 515 | playerent *pl = players[i]; |
| 516 | if(!pl || pl == p || !team_isactive(pl->team)) continue; |
| 517 | if(OUTBORD(pl->o.x, pl->o.y)) continue; |
| 518 | int pl_baseteam = team_base(pl->team); |
| 519 | if(p->team < TEAM_SPECT && ((m_teammode && !isteam(p_baseteam, pl_baseteam)) || (!m_teammode && !(spect3rd && d == pl)))) continue; |
| 520 | if(p->team == TEAM_SPECT && !(spect3rd && (isteam(p_baseteam, pl_baseteam) || d == pl))) continue; |
| 521 | vec rtmp = vec(pl->o).sub(mdd).mul(coordtrans); |
| 522 | drawradarent(rtmp.x, rtmp.y, pl->yaw, pl->state==CS_ALIVE ? (isattacking(pl) ? 2 : 0) : 1, spect3rd && d == pl ? 2 : pl_baseteam, iconsize, isattacking(pl), "%s", colorname(pl)); |
| 523 | } |
| 524 | if(m_flags_) |
| 525 | { |
| 526 | glColor4f(1.0f, 1.0f, 1.0f, (sinf(lastmillis / 100.0f) + 1.0f) / 2.0f); |
nothing calls this directly
no test coverage detected