From 788feda0dd78c745e56729e2b423fbbb002a34c9 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 9 Mar 2021 10:32:51 +0100 Subject: [PATCH] forgot to re-add the map specific stuff --- RaceTimer/scripting/unloze_racetimer_redux.sp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/RaceTimer/scripting/unloze_racetimer_redux.sp b/RaceTimer/scripting/unloze_racetimer_redux.sp index 5e19d31e..f47ce1e3 100644 --- a/RaceTimer/scripting/unloze_racetimer_redux.sp +++ b/RaceTimer/scripting/unloze_racetimer_redux.sp @@ -153,6 +153,19 @@ public void OnMapStart() { if (!g_dDatabase) Database.Connect(SQL_OnDatabaseConnect, "racetimercss"); + else + { + static Handle hHostName; + if((hHostName = FindConVar("hostname")) == INVALID_HANDLE) + return; + char line[g_dLength]; + GetConVarString(hHostName, line, sizeof(line)); + if (StrContains(line, "EVENT", false) > -1) + g_bEventBool = true; + g_bDisplaySpecial = unloze_gBSpecialMapDisplay(); + GetCurrentMap(g_cMapname, sizeof(g_cMapname)); + startTimer(); + } } //----------------------------------------------------------------------------------------------------