Fix warnings
This commit is contained in:
parent
6b4081663a
commit
1e0ee984ee
3 changed files with 4 additions and 2 deletions
|
|
@ -534,6 +534,7 @@ target_compile_options(SRB2SDL2 PRIVATE
|
|||
-Wno-unused-function
|
||||
-Wno-unused-but-set-variable
|
||||
-Wno-unused-private-field
|
||||
-Wno-vla-extension
|
||||
>
|
||||
|
||||
# GNU
|
||||
|
|
|
|||
|
|
@ -9734,7 +9734,7 @@ static void K_KartDrift(player_t *player, boolean onground)
|
|||
dot = FRACUNIT - abs(FV2_Dot(&fwd, &mov));
|
||||
tilt = FixedAngle(FixedMul(AngleFixed(ANG20), dot));
|
||||
|
||||
if (abs(player->nulldrifttilt) < tilt)
|
||||
if ((angle_t)abs(player->nulldrifttilt) < tilt)
|
||||
{
|
||||
player->nulldrifttilt = (abs(player->nulldrifttilt) + tilt/10) * -player->nulldrift;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9052,7 +9052,7 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
|
|||
P_MoveOrigin(mobj, mobj->target->x, mobj->target->y, mobj->target->z);
|
||||
break;
|
||||
case MT_BRAKEDRIFT:
|
||||
|
||||
{
|
||||
// Letting go of accel functions about the same as brake-drifting
|
||||
boolean nullDrift = (!(K_GetKartButtons(mobj->target->player) & BT_ACCELERATE));
|
||||
|
||||
|
|
@ -9111,6 +9111,7 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
|
|||
mobj->renderflags |= RF_DONTDRAW;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case MT_PLAYERRETICULE:
|
||||
if (!mobj->target || !mobj->target->health)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue