- Exhumed: Tidy up DrawMap() entrypoint.

This commit is contained in:
Mitchell Richters 2023-01-12 18:57:00 +11:00
parent c606fc11da
commit 087aa7b2ee
3 changed files with 6 additions and 10 deletions

View file

@ -105,7 +105,7 @@ extern bool bShowTowers;
void GrabMap();
void UpdateMap();
void DrawMap(double const interpfrac);
void DrawMap(const DVector2& pos, const DAngle yaw, const double interpfrac);
// random

View file

@ -50,12 +50,12 @@ void UpdateMap()
}
}
void DrawMap(double const interpfrac)
void DrawMap(const DVector2& pos, const DAngle yaw, const double interpfrac)
{
if (!nFreeze && automapMode != am_off)
{
auto pPlayerActor = PlayerList[nLocalPlayer].pActor;
DrawOverheadMap(pPlayerActor->interpolatedpos(interpfrac).XY(), PlayerList[nLocalPlayer].Angles.getRenderAngles(interpfrac).Yaw, interpfrac);
DrawOverheadMap(pos, yaw, interpfrac);
}
}

View file

@ -371,19 +371,15 @@ void DrawView(double interpfrac, bool sceneonly)
}
else if (!sceneonly)
{
if (nSnakeCam < 0)
{
DrawMap(interpfrac);
}
else
if (nSnakeCam >= 0)
{
RestoreGreenPal();
if (nEnemyPal > -1) {
pEnemy->spr.pal = (uint8_t)nEnemyPal;
}
DrawMap(interpfrac);
}
DrawMap(nCamerapos.XY(), nCameraangles.Yaw, interpfrac);
}
}
else