Typo fix
This commit is contained in:
parent
6d37075ef8
commit
8c0a95c495
|
@ -27,10 +27,10 @@ void Hooks::CreateMove(IBaseClientDLL* thisptr, int sequence, float frametime, b
|
||||||
cmd->buttons &= ~IN_JUMP;
|
cmd->buttons &= ~IN_JUMP;
|
||||||
|
|
||||||
if (GUI::BunnyHop::StrafeEnabled) {
|
if (GUI::BunnyHop::StrafeEnabled) {
|
||||||
f (!(localplayer->GetFlags() & FL_ONGROUND)) {
|
if (!(localplayer->GetFlags() & FL_ONGROUND)) {
|
||||||
if (cmd->mousedx > 1 || cmd->mousedx < -1) {
|
if (cmd->mousedx > 1 || cmd->mousedx < -1) {
|
||||||
cmd->sidemove = (cmd->mousedx < 0.f) ? -450.f : 450.f;
|
cmd->sidemove = (cmd->mousedx < 0.f) ? -450.f : 450.f;
|
||||||
} else {
|
} else {
|
||||||
cmd->forwardmove = (abs(cmd->forwardmove) > 0.f) ? 450.f : 0.f;
|
cmd->forwardmove = (abs(cmd->forwardmove) > 0.f) ? 450.f : 0.f;
|
||||||
cmd->sidemove = (cmd->sidemove != 0.f) ? ((cmd->sidemove > 0.f) ? 450.f : -450.f) : 0.f;
|
cmd->sidemove = (cmd->sidemove != 0.f) ? ((cmd->sidemove > 0.f) ? 450.f : -450.f) : 0.f;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue