Add cv_bhop check to bhop()
This commit is contained in:
parent
083778fad0
commit
b25226b406
|
@ -4,10 +4,10 @@
|
||||||
#include "include/movement.h"
|
#include "include/movement.h"
|
||||||
#include "../include/sdk.h"
|
#include "../include/sdk.h"
|
||||||
#include "../include/globals.h"
|
#include "../include/globals.h"
|
||||||
|
#include "../include/cvars.h"
|
||||||
|
|
||||||
void bhop(usercmd_t* cmd) {
|
void bhop(usercmd_t* cmd) {
|
||||||
/* TODO: Check !bhop_var */
|
if (!CVAR_ON(bhop) || i_pmove->movetype != MOVETYPE_WALK)
|
||||||
if (false || i_pmove->movetype != MOVETYPE_WALK)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
static bool was_in_air = false;
|
static bool was_in_air = false;
|
||||||
|
|
Loading…
Reference in New Issue