Make visible_mode global

This commit is contained in:
8dcc 2023-07-25 14:46:25 +02:00
parent 6e39b49c4b
commit 889d9481aa
2 changed files with 11 additions and 8 deletions

View File

@ -6,14 +6,7 @@
#include <GL/gl.h>
enum visible_flags {
NONE = 0,
VISIBLE = 1,
NOT_VISIBLE = 2,
/* TODO: HANDS */
};
static visible_flags visible_mode;
visible_flags visible_mode;
bool chams(void* this_ptr) {
if (!CVAR_ON(chams))

View File

@ -4,6 +4,15 @@
#include "../include/sdk.h"
enum visible_flags {
NONE = 0,
VISIBLE = 1,
NOT_VISIBLE = 2,
/* TODO: HANDS */
};
/*----------------------------------------------------------------------------*/
/* src/features/movement.c */
void bhop(usercmd_t* cmd);
@ -12,6 +21,7 @@ void esp(void);
void correct_movement(usercmd_t* cmd, vec3_t old_angles);
/* src/features/chams.c */
extern visible_flags visible_mode;
bool chams(void* this_ptr);
#endif /* FEATURES_H_ */