Make maxfps archive
This commit is contained in:
parent
0fd6597b71
commit
06ec92deef
@ -41,7 +41,7 @@ private:
|
||||
|
||||
void patch_mp() const
|
||||
{
|
||||
// Note: on SP it's already unlocked to 1000
|
||||
// Note: on SP the max value is already 1000
|
||||
utils::hook(0x55411F, &dvar_register_com_max_fps, HOOK_CALL).install()->quick();
|
||||
}
|
||||
|
||||
@ -63,9 +63,10 @@ private:
|
||||
}
|
||||
|
||||
static const game::native::dvar_t* dvar_register_com_max_fps(const char* dvarName, int value,
|
||||
int min, int /*max*/, unsigned __int16 flags, const char* description)
|
||||
int min, int /*max*/, unsigned __int16 /*flags*/, const char* description)
|
||||
{
|
||||
return game::native::Dvar_RegisterInt(dvarName, value, min, 1000, flags, description);
|
||||
return game::native::Dvar_RegisterInt(dvarName, value, min, 1000,
|
||||
game::native::dvar_flags::DVAR_ARCHIVE, description);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user