Fix gamepad use hold time by checking for used buttons from gentity instead of local player keys to work on dedicated servers

This commit is contained in:
Jan
2021-08-30 20:05:06 +02:00
parent aa3c6d79c6
commit a07a00da93
3 changed files with 12 additions and 5 deletions

View File

@ -5262,7 +5262,13 @@ namespace Game
unsigned int team;
char pad2[436];
int flags;
char pad3[724];
int spectatorClient;
int lastCmdTime;
int buttons;
int oldbuttons;
int latched_buttons;
int buttonsSinceLastFrame;
char pad3[700];
} gclient_t;
struct EntHandle