Skip to content

Commit

Permalink
Initialize save_history_count to the default value of sv_save_history…
Browse files Browse the repository at this point in the history
…_count_archived
  • Loading branch information
1upD authored Nov 28, 2023
1 parent 7c0ff0b commit 0c05054
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sp/src/game/server/ez2/ez2_save_metadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@
class CCustomSaveMetadata : public CAutoGameSystem
{
public:
bool Init()
{
ConVarRef save_history_count("save_history_count");
ConVarRef sv_save_history_count_archived("sv_save_history_count_archived");
Msg("Setting save_history_count to %d....\n", sv_save_history_count_archived.GetInt());
save_history_count.SetValue(sv_save_history_count_archived.GetInt());
return true;
}


void OnSave()
{
Expand Down

0 comments on commit 0c05054

Please sign in to comment.