mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Add function header comments to my new functions.
This commit is contained in:
parent
7f48bfc19a
commit
d8f81ab4b9
1 changed files with 23 additions and 0 deletions
23
src/k_kart.c
23
src/k_kart.c
|
|
@ -5673,6 +5673,18 @@ static void K_KartDrift(player_t *player, boolean onground)
|
||||||
player->kartstuff[k_brakedrift] = 0;
|
player->kartstuff[k_brakedrift] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------
|
||||||
|
static waypoint_t *K_GetPlayerNextWaypoint(player_t *player)
|
||||||
|
|
||||||
|
Gets the next waypoint of a player, by finding their closest waypoint, then checking which of itself and next or
|
||||||
|
previous waypoints are infront of the player.
|
||||||
|
|
||||||
|
Input Arguments:-
|
||||||
|
player - The player the next waypoint is being found for
|
||||||
|
|
||||||
|
Return:-
|
||||||
|
The waypoint that is the player's next waypoint
|
||||||
|
--------------------------------------------------*/
|
||||||
static waypoint_t *K_GetPlayerNextWaypoint(player_t *player)
|
static waypoint_t *K_GetPlayerNextWaypoint(player_t *player)
|
||||||
{
|
{
|
||||||
waypoint_t *bestwaypoint = NULL;
|
waypoint_t *bestwaypoint = NULL;
|
||||||
|
|
@ -5769,6 +5781,17 @@ static waypoint_t *K_GetPlayerNextWaypoint(player_t *player)
|
||||||
return bestwaypoint;
|
return bestwaypoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------
|
||||||
|
static void K_UpdateDistanceFromFinishLine(player_t *player)
|
||||||
|
|
||||||
|
Updates the distance a player has to the finish line.
|
||||||
|
|
||||||
|
Input Arguments:-
|
||||||
|
player - The player the distance is being updated for
|
||||||
|
|
||||||
|
Return:-
|
||||||
|
None
|
||||||
|
--------------------------------------------------*/
|
||||||
static void K_UpdateDistanceFromFinishLine(player_t *player)
|
static void K_UpdateDistanceFromFinishLine(player_t *player)
|
||||||
{
|
{
|
||||||
if ((player != NULL) && (player->mo != NULL))
|
if ((player != NULL) && (player->mo != NULL))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue