mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
Minimap: only show dot indicating player angle for local party players
This commit is contained in:
parent
4277c6d930
commit
d5c92bf725
1 changed files with 0 additions and 21 deletions
|
|
@ -4149,8 +4149,6 @@ static void K_drawKartMinimap(void)
|
||||||
{
|
{
|
||||||
for (i = MAXPLAYERS-1; i >= 0; i--)
|
for (i = MAXPLAYERS-1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
boolean nocontest = false;
|
|
||||||
|
|
||||||
if (!playeringame[i])
|
if (!playeringame[i])
|
||||||
continue;
|
continue;
|
||||||
if (!players[i].mo || players[i].spectator || !players[i].mo->skin
|
if (!players[i].mo || players[i].spectator || !players[i].mo->skin
|
||||||
|
|
@ -4194,8 +4192,6 @@ static void K_drawKartMinimap(void)
|
||||||
colormap = R_GetTranslationColormap(TC_DEFAULT, static_cast<skincolornum_t>(mobj->color), GTC_CACHE);
|
colormap = R_GetTranslationColormap(TC_DEFAULT, static_cast<skincolornum_t>(mobj->color), GTC_CACHE);
|
||||||
|
|
||||||
mobj = mobj->tracer;
|
mobj = mobj->tracer;
|
||||||
|
|
||||||
nocontest = true;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -4227,23 +4223,6 @@ static void K_drawKartMinimap(void)
|
||||||
{
|
{
|
||||||
K_drawKartMinimapIcon(interpx, interpy, x, y, splitflags, kp_wantedreticle, NULL);
|
K_drawKartMinimapIcon(interpx, interpy, x, y, splitflags, kp_wantedreticle, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!nocontest)
|
|
||||||
{
|
|
||||||
angle_t ang = R_InterpolateAngle(mobj->old_angle, mobj->angle);
|
|
||||||
if (encoremode)
|
|
||||||
ang = ANGLE_180 - ang;
|
|
||||||
|
|
||||||
K_drawKartMinimapIcon(
|
|
||||||
interpx,
|
|
||||||
interpy,
|
|
||||||
x + FixedMul(FCOS(ang), ICON_DOT_RADIUS),
|
|
||||||
y - FixedMul(FSIN(ang), ICON_DOT_RADIUS),
|
|
||||||
splitflags,
|
|
||||||
kp_minimapdot,
|
|
||||||
colormap
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue