minor code format commit

This commit is contained in:
FutureRave 2022-10-06 23:48:17 +01:00
parent e2b6c69b79
commit f1b49473b0
No known key found for this signature in database
GPG Key ID: 22F9079C86CFAB31
2 changed files with 5 additions and 5 deletions

View File

@ -387,7 +387,7 @@ void command::post_load()
{
const auto* dvar = game::native::sortedDvars[i];
if (dvar != nullptr)
if (dvar)
{
const auto* line = utils::string::va("%s \"%s\"\r\n", dvar->name, game::native::Dvar_DisplayableValue(dvar));
utils::io::write_file(file_name, line, i != 0);

View File

@ -197,8 +197,8 @@ void player_movement::jump_apply_slowdown_stub(game::native::playerState_s* ps)
scale = 0.65f;
}
if ((ps->pm_flags & game::native::PMF_DIVING) == 0
&& jump_slowdownEnable->current.enabled)
if ((ps->pm_flags & game::native::PMF_DIVING) == 0 &&
jump_slowdownEnable->current.enabled)
{
game::native::VectorScale(ps->velocity, scale, ps->velocity);
}
@ -209,8 +209,8 @@ float player_movement::jump_get_land_factor(game::native::playerState_s* ps)
assert(ps->pm_flags & game::native::PMF_JUMPING);
assert(ps->pm_time <= game::native::JUMP_LAND_SLOWDOWN_TIME);
if (!jump_slowdownEnable->current.enabled
|| (ps->pm_flags & game::native::PMF_DIVING) != 0)
if (!jump_slowdownEnable->current.enabled ||
(ps->pm_flags & game::native::PMF_DIVING) != 0)
{
return 1.0f;
}