mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
fix some errors that come up due to due to migrations
This commit is contained in:
parent
fc801e8a01
commit
309421ad18
@ -225,6 +225,14 @@ public void Shavit_OnDatabaseLoaded()
|
||||
SetFailState("MySQL is the only supported database engine for shavit-rankings.");
|
||||
}
|
||||
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if (IsValidClient(i) && IsClientAuthorized(i))
|
||||
{
|
||||
OnClientAuthorized(i, "");
|
||||
}
|
||||
}
|
||||
|
||||
gH_SQL.Query(SQL_Version_Callback, "SELECT VERSION();");
|
||||
|
||||
char sQuery[2048];
|
||||
@ -295,17 +303,6 @@ public void Trans_RankingsSetupSuccess(Database db, any data, int numQueries, DB
|
||||
}
|
||||
|
||||
OnMapStart();
|
||||
|
||||
if(gB_Late)
|
||||
{
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if (IsValidClient(i))
|
||||
{
|
||||
OnClientConnected(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void OnClientConnected(int client)
|
||||
@ -316,7 +313,7 @@ public void OnClientConnected(int client)
|
||||
|
||||
public void OnClientAuthorized(int client)
|
||||
{
|
||||
if(!IsFakeClient(client))
|
||||
if (gH_SQL && !IsFakeClient(client))
|
||||
{
|
||||
if (gB_WRsRefreshed)
|
||||
{
|
||||
|
||||
@ -410,7 +410,7 @@ public void OnClientConnected(int client)
|
||||
|
||||
public void OnClientAuthorized(int client)
|
||||
{
|
||||
if (!IsFakeClient(client))
|
||||
if (gB_Connected && !IsFakeClient(client))
|
||||
{
|
||||
UpdateClientCache(client);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user