Make it compile

This commit is contained in:
Sally Coolatta 2020-07-23 19:23:27 -04:00
parent 25e9c72bab
commit 4a9a33130a
2 changed files with 4 additions and 3 deletions

View file

@ -6829,17 +6829,17 @@ boolean K_PlayerEBrake(player_t *player)
&& leveltime > starttime;
}
tic_t K_GetSpindashChargeTime(player_t *player)
static tic_t K_GetSpindashChargeTime(player_t *player)
{
return (player->kartspeed + 4)*TICRATE/3; // more charge time for higher speed: Tails = 2s, Mighty = 3s, Fang = 4s
}
fixed_t K_GetSpindashChargeSpeed(player_t *player)
static fixed_t K_GetSpindashChargeSpeed(player_t *player)
{
return FixedMul(FRACUNIT + (player->kartweight - 5)*FRACUNIT/12, K_GetKartSpeed(player, false)); // more speed for higher weight: Tails = 75%, Fang = 100%, Mighty = 125%
}
void K_KartSpindash(player_t *player)
static void K_KartSpindash(player_t *player)
{
ticcmd_t *cmd = &player->cmd;

View file

@ -22,6 +22,7 @@
#include "r_main.h"
#include "p_maputl.h"
#include "w_wad.h"
#include "k_kart.h" // K_PlayerEBrake
#ifdef ESLOPE