Commit b5156e23 authored by Neoony's avatar Neoony
Browse files

v0.1.1 -Small bugfix

parent de758b00
Pipeline #9756 failed with stages
in 5 minutes and 26 seconds
......@@ -55,4 +55,7 @@
**v0.1**
- Switch versioning from WIP
- Added HUD messages
\ No newline at end of file
- Added HUD messages
**v0.1.1**
- Small bugfix
\ No newline at end of file
......@@ -22,7 +22,7 @@
#include <socket>
#include <cURL>
#define PluginVer "v0.1"
#define PluginVer "v0.1.1"
public Plugin myinfo =
{
......@@ -67,6 +67,7 @@ Handle VoteHandle = INVALID_HANDLE;
Handle Timer1[MAXPLAYERS+1] = INVALID_HANDLE;
Handle Timer2[MAXPLAYERS+1] = INVALID_HANDLE;
Handle PopulatedRedirectTimer = INVALID_HANDLE;
Handle HudTimer = INVALID_HANDLE;
//Handle XPcheckTimer[10] = INVALID_HANDLE;
int XPcheckcounter[10];
Handle RefreshServersTimer = INVALID_HANDLE;
......@@ -187,7 +188,7 @@ public void OnPluginStart()
CurRefreshTime = GetConVarInt(l_refreshservers);
CheckRefreshTime = CreateTimer(GetConVarFloat(l_refreshservers), CheckRefreshTm, _, TIMER_REPEAT);
CreateTimer(1.0, HudTmr, _, TIMER_REPEAT);
HudTimer = CreateTimer(1.0, HudTmr, _, TIMER_REPEAT);
l_serverformat = CreateConVar( "l_serverformat", "%name - %map (%numplayers/%maxplayers)", "Dont change, this is here because of issues with strings and % sign." );
......@@ -820,13 +821,6 @@ public void OnConfigsExecuted()
ConnectDialogTimer = INVALID_HANDLE;
}
//Clear timer
if (ConnectDialogTimer != INVALID_HANDLE)
{
KillTimer(ConnectDialogTimer);
ConnectDialogTimer = INVALID_HANDLE;
}
//Clear timer
if (PopulatedRedirectTimer != INVALID_HANDLE)
{
......@@ -2212,6 +2206,13 @@ public void UpdateServer_HandleXP(Handle uhDriver, Handle uhResult, const char[]
public Action HudTmr(Handle timer)
{
LobbyHud();
//Clear timer
if (HudTimer != INVALID_HANDLE)
{
KillTimer(HudTimer);
HudTimer = INVALID_HANDLE;
}
HudTimer = CreateTimer(1.0, HudTmr, _, TIMER_REPEAT);
}
public void LobbyHud()
......@@ -2224,5 +2225,5 @@ public void LobbyHud()
{
ShowHudText(i, 6, "Empires Lobby");
}
}
}
}
\ No newline at end of file
......@@ -4,11 +4,10 @@
{
"Version"
{
"Latest" "v0.1"
"Latest" "v0.1.1"
}
"Notes" "Switch versioning from WIP"
"Notes" "Added HUD messages"
"Notes" "Small bugfix"
}
"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