Skip to content

Commit

Permalink
idk fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cryham committed May 11, 2024
1 parent 983a178 commit 3ce1097
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/game/Hud_UpdatesAll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,17 @@ void CHud::UpdCarTexts(int carId, Hud& h, float time, CAR* pCar)

// ⏱️ Times etc
//-------------------------------------------------------------------------------------------------------------------
// list nearest, dist
struct Col
{
int id;
float dist;

bool operator<(const Col& other)
{
return dist < other.dist;
}
};
void CHud::UpdTimes(int carId, Hud& h, float time, CAR* pCar, CarModel* pCarM)
{
/// times, race pos -----------------------------
Expand Down Expand Up @@ -429,17 +440,7 @@ void CHud::UpdTimes(int carId, Hud& h, float time, CAR* pCar, CarModel* pCarM)
const auto& cols = app->sc->collects;
int all = cols.size();
auto pos = pCarM->ndMain->getPosition();
// list nearest, dist
struct Col
{
int id;
float dist;

bool operator<(const Col& other)
{
return dist < other.dist;
}
};

std::list<Col> near; // nearest few
//all = app->sc->collects.size();
// const Collect& colx = app->data->collect->all[pSet->game.collect_num];
Expand Down

0 comments on commit 3ce1097

Please sign in to comment.