mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-14 08:30:35 +00:00
- Exhumed: Tidy up DrawMap()
entrypoint.
This commit is contained in:
parent
c606fc11da
commit
087aa7b2ee
3 changed files with 6 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue