Added a CVAR for saving class selection after map changes.

This commit is contained in:
richard
2008-10-12 18:56:51 +02:00
parent f7c2a11576
commit 9d35648089
4 changed files with 20 additions and 6 deletions

View File

@ -15,7 +15,7 @@
#undef REQUIRE_PLUGIN
#include <market>
#define VERSION "2.5.1.8"
#define VERSION "2.5.1.9"
#include "zr/zombiereloaded"
#include "zr/global"
@ -116,6 +116,16 @@ public OnMapStart()
LoadModelData();
LoadDownloadData();
/* Reset to default class if class selection saving is disabled. */
if (!GetConVarBool(gCvars[CVAR_CLASSES_SAVE]))
{
new i;
for (i = 1; i <= MAXPLAYERS; i++)
{
pClass[i] = GetDefaultClassIndex();
}
}
}
public OnConfigsExecuted()