Commit 4899e10b authored by Mikleo's avatar Mikleo
Browse files

fix broken status update.

parent a18f253d
Pipeline #9507 passed with stages
in 16 seconds
......@@ -8,7 +8,7 @@
#include <empstats>
#include <updater>
#define PluginVersion "1.10"
#define PluginVersion "1.11"
#define UPDATE_URL "https://sourcemod.docs.empiresmod.com/DraftPick/dist/updater.txt"
......@@ -1037,7 +1037,19 @@ public Action Timer_Join(Handle timer,client)
public Action Timer_Tick(Handle timer,client)
{
int time = GetTime();
// do this first, because we could change stage and it would miss the disable event.
if(sc_gamedesc_stage != INVALID_HANDLE)
{
char message[32];
Format(message,sizeof(message)," Draft Stage (%ds)",tickTime);
sc_gamedesc_stage.SetString(message,false,false);
}
if(tickTime <= 0)
{
// depending on stages do something.
......@@ -1096,12 +1108,7 @@ public Action Timer_Tick(Handle timer,client)
}
if(sc_gamedesc_stage != INVALID_HANDLE)
{
char message[32];
Format(message,sizeof(message)," Draft Stage (%ds)",tickTime);
sc_gamedesc_stage.SetString(message,false,false);
}
char text[128];
......
......@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "1.10"
"Latest" "1.11"
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment