- Fixed: G_QueueBody() should only change the translation to one of its
private slots if the one currently used is a player range. - Fixed: Changing the fraglimit during the middle of a game would not trigger a level change if somebody was already over the new limit. SVN r599 (trunk)
This commit is contained in:
parent
8d5402cec2
commit
dd460fed2a
5 changed files with 35 additions and 6 deletions
|
|
@ -150,7 +150,24 @@ extern cycle_t WallCycles, PlaneCycles, MaskedCycles, WallScanCycles;
|
|||
|
||||
// PUBLIC DATA DEFINITIONS -------------------------------------------------
|
||||
|
||||
CVAR (Int, fraglimit, 0, CVAR_SERVERINFO);
|
||||
CUSTOM_CVAR (Int, fraglimit, 0, CVAR_SERVERINFO)
|
||||
{
|
||||
// Check for the fraglimit being hit because the fraglimit is being
|
||||
// lowered below somebody's current frag count.
|
||||
if (deathmatch && self > 0)
|
||||
{
|
||||
for (int i = 0; i < MAXPLAYERS; ++i)
|
||||
{
|
||||
if (playeringame[i] && self <= D_GetFragCount(&players[i]))
|
||||
{
|
||||
Printf ("%s\n", GStrings("TXT_FRAGLIMIT"));
|
||||
G_ExitLevel (0, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
CVAR (Float, timelimit, 0.f, CVAR_SERVERINFO);
|
||||
CVAR (Bool, queryiwad, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
|
||||
CVAR (String, defaultiwad, "", CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue