Skip to content

Commit

Permalink
- renamed PlayerHorizon function to deconflict with the same-named st…
Browse files Browse the repository at this point in the history
…ruct
  • Loading branch information
coelckers committed May 2, 2021
1 parent 698d62b commit c9791bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/games/duke/src/inlines.h
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion source/games/duke/src/player_d.cpp
Expand Up @@ -3118,7 +3118,7 @@ void processinput_d(int snum)

if (SyncInput())
{
sethorizon(&p->horizon, PlayerHorizon(snum), &p->sync.actions);
sethorizon(&p->horizon, GetPlayerHorizon(snum), &p->sync.actions);
}

p->checkhardlanding();
Expand Down
2 changes: 1 addition & 1 deletion source/games/duke/src/player_r.cpp
Expand Up @@ -3982,7 +3982,7 @@ void processinput_r(int snum)

if (SyncInput())
{
sethorizon(&p->horizon, PlayerHorizon(snum), &p->sync.actions);
sethorizon(&p->horizon, GetPlayerHorizon(snum), &p->sync.actions);
}

p->checkhardlanding();
Expand Down

0 comments on commit c9791bc

Please sign in to comment.