- renamed PlayerHorizon function to deconflict with the same-named struct

This commit is contained in:
Christoph Oelckers 2021-05-02 21:56:31 +02:00
parent 698d62bbc6
commit c9791bc148
3 changed files with 3 additions and 3 deletions

View file

@ -164,7 +164,7 @@ inline float PlayerInputAngVel(int pl)
return ps[pl].sync.avel;
}
inline float PlayerHorizon(int pl)
inline float GetPlayerHorizon(int pl)
{
return ps[pl].sync.horz;
}

View file

@ -3118,7 +3118,7 @@ HORIZONLY:
if (SyncInput())
{
sethorizon(&p->horizon, PlayerHorizon(snum), &p->sync.actions);
sethorizon(&p->horizon, GetPlayerHorizon(snum), &p->sync.actions);
}
p->checkhardlanding();

View file

@ -3982,7 +3982,7 @@ HORIZONLY:
if (SyncInput())
{
sethorizon(&p->horizon, PlayerHorizon(snum), &p->sync.actions);
sethorizon(&p->horizon, GetPlayerHorizon(snum), &p->sync.actions);
}
p->checkhardlanding();