Fix wrong usercmd in anti-afk

This commit is contained in:
BenCat07 2020-05-25 17:33:33 +02:00
parent dbdaa580e4
commit 4f2005303c

View File

@ -92,7 +92,7 @@ static void updateAntiAfk()
// Game also checks if you move if you are in spawn, so spam movement keys alternatingly
bool flip = false;
current_late_user_cmd->buttons |= flip ? IN_FORWARD : IN_BACK;
current_user_cmd->buttons |= flip ? IN_FORWARD : IN_BACK;
// Flip flip
flip = !flip;
if (anti_afk_timer.check(afk_timer->GetInt() * 60 * 1000 + 1000))