Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
sourcemod
DraftPick
Commits
4899e10b
Commit
4899e10b
authored
Apr 24, 2020
by
Mikleo
Browse files
fix broken status update.
parent
a18f253d
Pipeline
#9507
passed with stages
in 16 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dist/addons/sourcemod/plugins/draftpick.smx
View file @
4899e10b
No preview for this file type
dist/addons/sourcemod/scripting/draftpick.sp
View file @
4899e10b
...
...
@@ -8,7 +8,7 @@
#include <empstats>
#include <updater>
#define PluginVersion "1.1
0
"
#define PluginVersion "1.1
1
"
#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];
...
...
dist/updater.txt
View file @
4899e10b
...
...
@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "1.1
0
"
"Latest" "1.1
1
"
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment