Commit c9116227 authored by Neoony's avatar Neoony
Browse files

v0.4.3 -Small bugfix to botsoff/on queue

parent 9c262a79
Pipeline #12116 passed with stages
in 9 minutes and 1 second
......@@ -95,4 +95,7 @@
- Small bugfix
**v0.4.2**
- Switch steamcharts link to steamdb, as steamcharts seems unavailable for empires right now
\ No newline at end of file
- Switch steamcharts link to steamdb, as steamcharts seems unavailable for empires right now
**v0.4.3**
- Small bugfix to botsoff/on queue
\ No newline at end of file
......@@ -23,7 +23,7 @@
#include <cURL>
#include <SteamWorks>
#define PluginVer "v0.4.2"
#define PluginVer "v0.4.3"
public Plugin myinfo =
{
......@@ -280,6 +280,7 @@ public Action CCommand_botsoff(int client, int args)
if (BotsVoteTimerOn == false)
{
BotsVoteTimer = CreateTimer(30.0, BotsVoteTmr);
BotsVoteTimerOn = true;
}
if (BotsVoteTimerOn == true)
{
......@@ -290,6 +291,7 @@ public Action CCommand_botsoff(int client, int args)
BotsVoteTimer = INVALID_HANDLE;
}
BotsVoteTimer = CreateTimer(30.0, BotsVoteTmr);
BotsVoteTimerOn = true;
}
......@@ -322,6 +324,7 @@ public Action CCommand_botsoff(int client, int args)
{
KillTimer(BotsVoteTimer);
BotsVoteTimer = INVALID_HANDLE;
BotsVoteTimerOn = false;
}
}
}
......@@ -346,6 +349,7 @@ public Action CCommand_botson(int client, int args)
if (BotsVoteTimerOn == false)
{
BotsVoteTimer = CreateTimer(30.0, BotsVoteTmr);
BotsVoteTimerOn = true;
}
if (BotsVoteTimerOn == true)
{
......@@ -356,6 +360,7 @@ public Action CCommand_botson(int client, int args)
BotsVoteTimer = INVALID_HANDLE;
}
BotsVoteTimer = CreateTimer(30.0, BotsVoteTmr);
BotsVoteTimerOn = true;
}
if (BotsOnClient[client] == 1)
......@@ -387,6 +392,7 @@ public Action CCommand_botson(int client, int args)
{
KillTimer(BotsVoteTimer);
BotsVoteTimer = INVALID_HANDLE;
BotsVoteTimerOn = false;
}
}
}
......@@ -415,6 +421,7 @@ public Action BotsVoteTmr(Handle timer)
{
KillTimer(BotsVoteTimer);
BotsVoteTimer = INVALID_HANDLE;
BotsVoteTimerOn = false;
}
}
......@@ -1020,6 +1027,7 @@ public OnMapEnd()
{
KillTimer(BotsVoteTimer);
BotsVoteTimer = INVALID_HANDLE;
BotsVoteTimerOn = false;
}
/*
......@@ -1116,6 +1124,7 @@ void Event_GameEnd(Handle event, const char[] name, bool dontBroadcast)
{
KillTimer(BotsVoteTimer);
BotsVoteTimer = INVALID_HANDLE;
BotsVoteTimerOn = false;
}
/*
......@@ -1208,6 +1217,7 @@ public void OnConfigsExecuted()
{
KillTimer(BotsVoteTimer);
BotsVoteTimer = INVALID_HANDLE;
BotsVoteTimerOn = false;
}
PlayerCountCheck = CreateTimer(5.0, PlayerCountChk, _, TIMER_REPEAT);
......
......@@ -4,10 +4,10 @@
{
"Version"
{
"Latest" "v0.4.2"
"Latest" "v0.4.3"
}
"Notes" "Switch steamcharts link to steamdb, as steamcharts seems unavailable for empires right now"
"Notes" "Small bugfix to botsoff/on queue"
}
"Files"
......
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