X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_world.qh;h=5366d0a782129ff2cce3e1064a76c14fb877f337;hb=5e407e0d952589c8041fa4263e495dc09116e8db;hp=920ef71e184c1cc71d5962d57cd9c639f140d8f4;hpb=88713a575bd27dabc5926d636542b6145ab6f51c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_world.qh b/qcsrc/server/g_world.qh index 920ef71e1..5366d0a78 100644 --- a/qcsrc/server/g_world.qh +++ b/qcsrc/server/g_world.qh @@ -1,16 +1,20 @@ -#ifndef G_WORLD_H -#define G_WORLD_H +#pragma once float checkrules_equality; float checkrules_suddendeathwarning; float checkrules_suddendeathend; float checkrules_overtimesadded; //how many overtimes have been already added -const float WINNING_NO = 0; // no winner, but time limits may terminate the game -const float WINNING_YES = 1; // winner found -const float WINNING_NEVER = 2; // no winner, enter overtime if time limit is reached -const float WINNING_STARTSUDDENDEATHOVERTIME = 3; // no winner, enter suddendeath overtime NOW +const int WINNING_NO = 0; // no winner, but time limits may terminate the game +const int WINNING_YES = 1; // winner found +const int WINNING_NEVER = 2; // no winner, enter overtime if time limit is reached +const int WINNING_STARTSUDDENDEATHOVERTIME = 3; // no winner, enter suddendeath overtime NOW +bool limits_are_set = false; +void SetLimits(int fraglimit_override, int leadlimit_override, float timelimit_override, float qualifying_override); + +float WinningCondition_Scores(float limit, float leadlimit); +void SetWinners(.float field, float value); void CheckRules_Player(); void IntermissionThink(); void GotoNextMap(float reinit); @@ -24,5 +28,3 @@ void Map_Goto_SetStr(string nextmapname); void Map_Goto(float reinit); float DoNextMapOverride(float reinit); void CheckRules_World(); - -#endif