fix random crits

This commit is contained in:
BenCat07 2018-04-08 18:42:00 +02:00
parent 152b766c9a
commit 08a00e2c11
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ static const model_t *lastweapon = nullptr;
bool force_crit(IClientEntity *weapon)
{
if (lastnumber < g_pUserCmd->command_number ||
lastweapon != weapon->GetModel())
lastweapon != weapon->GetModel() || lastnumber - g_pUserCmd > 1000)
{
if (cached_calculation.init_command > g_pUserCmd->command_number ||
g_pUserCmd->command_number - cached_calculation.init_command >

View File

@ -416,7 +416,7 @@ void Shutdown_hook(void *_this, const char *reason)
}
if (hacks::shared::autojoin::auto_queue)
tfmm::abandon();
tfmm::queue_start();
}
static CatVar resolver(CV_SWITCH, "resolver", "0", "Resolve angles");