1.1 --- a/extensions/clientprefs/extension.cpp Thu May 24 16:04:23 2012 +0100
1.2 +++ b/extensions/clientprefs/extension.cpp Thu May 24 16:07:28 2012 +0100
1.3 @@ -202,6 +202,19 @@
1.4 cookieMutex->DestroyThis();
1.5 }
1.6
1.7 +void ClientPrefs::OnCoreMapStart(edict_t *pEdictList, int edictCount, int clientMax)
1.8 +{
1.9 + if (Database == NULL && !databaseLoading)
1.10 + {
1.11 + g_pSM->LogMessage(myself, "Attempting to reconnect to database...");
1.12 +
1.13 + databaseLoading = true;
1.14 +
1.15 + TQueryOp *op = new TQueryOp(Query_Connect, 0);
1.16 + dbi->AddToThreadQueue(op, PrioQueue_High);
1.17 + }
1.18 +}
1.19 +
1.20 void ClientPrefs::DatabaseConnect()
1.21 {
1.22 char error[256];