X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_world.qh;h=6b9a9f8eca7b8860ea5458dd9f49468b9d9b1b89;hb=969dc49d01d650a812706aba16c765af488605d0;hp=e408974bbe04d3b295b2329c912815b89cb4c1f2;hpb=edf01df130d0d1877461561178b8833a9ab6051c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_world.qh b/qcsrc/server/g_world.qh index e408974bb..6b9a9f8ec 100644 --- a/qcsrc/server/g_world.qh +++ b/qcsrc/server/g_world.qh @@ -5,26 +5,32 @@ float checkrules_suddendeathwarning; float checkrules_suddendeathend; float checkrules_overtimesadded; //how many overtimes have been already added +// flag set on worldspawn so that the code knows if it is dedicated or not +bool server_is_dedicated; + +string cache_mutatormsg; +string cache_lastmutatormsg; + 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(entity this); void IntermissionThink(entity this); void GotoNextMap(float reinit); void ReadyRestart(); +string GetGametype(); + void DumpStats(float final); float Map_IsRecent(string m); string GetNextMap(); void ShuffleMaplist(); void Map_Goto_SetStr(string nextmapname); void Map_Goto(float reinit); +void Map_MarkAsRecent(string m); float DoNextMapOverride(float reinit); void CheckRules_World(); +float RedirectionThink();