mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Re-add const
This commit is contained in:
parent
efeab5e80e
commit
8e041e7d0b
1 changed files with 5 additions and 5 deletions
10
src/k_kart.c
10
src/k_kart.c
|
|
@ -1840,14 +1840,14 @@ void K_KartMoveAnimation(player_t *player)
|
||||||
{
|
{
|
||||||
const INT16 minturn = KART_FULLTURN/8;
|
const INT16 minturn = KART_FULLTURN/8;
|
||||||
|
|
||||||
fixed_t fastspeed = (K_GetKartSpeed(player, false) * 17) / 20; // 85%
|
const fixed_t fastspeed = (K_GetKartSpeed(player, false) * 17) / 20; // 85%
|
||||||
fixed_t speedthreshold = player->mo->scale / 8;
|
const fixed_t speedthreshold = player->mo->scale / 8;
|
||||||
|
|
||||||
boolean onground = P_IsObjectOnGround(player->mo);
|
const boolean onground = P_IsObjectOnGround(player->mo);
|
||||||
|
|
||||||
ticcmd_t *cmd = &player->cmd;
|
ticcmd_t *cmd = &player->cmd;
|
||||||
boolean spinningwheels = (((cmd->buttons & BT_ACCELERATE) == BT_ACCELERATE) || (onground && player->speed > 0));
|
const boolean spinningwheels = (((cmd->buttons & BT_ACCELERATE) == BT_ACCELERATE) || (onground && player->speed > 0));
|
||||||
boolean lookback = ((cmd->buttons & BT_LOOKBACK) == BT_LOOKBACK);
|
const boolean lookback = ((cmd->buttons & BT_LOOKBACK) == BT_LOOKBACK);
|
||||||
|
|
||||||
SINT8 turndir = 0;
|
SINT8 turndir = 0;
|
||||||
SINT8 destGlanceDir = 0;
|
SINT8 destGlanceDir = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue