hopefully fixed database connection
This commit is contained in:
parent
d2ef826790
commit
f3898a1663
@ -151,15 +151,10 @@ public void SQL_FinishedQuery(Database db, DBResultSet results, const char[] err
|
|||||||
|
|
||||||
public void OnMapStart()
|
public void OnMapStart()
|
||||||
{
|
{
|
||||||
|
if (!g_dDatabase)
|
||||||
Database.Connect(SQL_OnDatabaseConnect, "racetimercss");
|
Database.Connect(SQL_OnDatabaseConnect, "racetimercss");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnMapEnd()
|
|
||||||
{
|
|
||||||
if (g_dDatabase != null)
|
|
||||||
delete g_dDatabase;
|
|
||||||
}
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
// Purpose:
|
// Purpose:
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user