]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/g_world.qh
Properly support team field on trigger_multiple
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_world.qh
index 920ef71e184c1cc71d5962d57cd9c639f140d8f4..034407bc1f0f135722602b3ba8224e70ca98ea00 100644 (file)
@@ -1,18 +1,18 @@
-#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
 
-void CheckRules_Player();
-void IntermissionThink();
+float WinningCondition_Scores(float limit, float leadlimit);
+void SetWinners(.float field, float value);
+void IntermissionThink(entity this);
 void GotoNextMap(float reinit);
 void ReadyRestart();
 
@@ -24,5 +24,3 @@ void Map_Goto_SetStr(string nextmapname);
 void Map_Goto(float reinit);
 float DoNextMapOverride(float reinit);
 void CheckRules_World();
-
-#endif