Add cv_bhop check to bhop()

This commit is contained in:
8dcc 2023-07-21 13:45:21 +02:00
parent 083778fad0
commit b25226b406
1 changed files with 2 additions and 2 deletions

View File

@ -4,10 +4,10 @@
#include "include/movement.h"
#include "../include/sdk.h"
#include "../include/globals.h"
#include "../include/cvars.h"
void bhop(usercmd_t* cmd) {
/* TODO: Check !bhop_var */
if (false || i_pmove->movetype != MOVETYPE_WALK)
if (!CVAR_ON(bhop) || i_pmove->movetype != MOVETYPE_WALK)
return;
static bool was_in_air = false;