diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-04-13 11:30:00 +0000 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-04-15 17:24:22 +0200 |
commit | 5510cfbeec0bcb59eac770fdb9b5132d7c61b426 (patch) | |
tree | 2a71ecfe949c306bbeadc5eca7b69e23dbbdf477 /src/game/g_local.h | |
parent | 56d892b6df06a88694988a2c8410dfaebc9bf9ac (diff) |
Add a cool down timer to !revert.
This will prevent two (or more) admins from trying to !revert simultaneously and accidentally undoing innocent players' progress.
Diffstat (limited to 'src/game/g_local.h')
-rw-r--r-- | src/game/g_local.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/g_local.h b/src/game/g_local.h index 46c53ba..6e077bd 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -549,6 +549,7 @@ struct gclient_s int tkcredits[ MAX_CLIENTS ]; + int revertCookie; }; @@ -1541,6 +1542,8 @@ extern vmCvar_t g_reportWelcomeComment; extern vmCvar_t g_scrimMode; +extern vmCvar_t g_revertCooldownTime; + void trap_Printf( const char *fmt ); void trap_Error( const char *fmt ); int trap_Milliseconds( void ); |