fix: load fdbchecksum to verify, even on character selection (world 0) (#1176)

This commit is contained in:
Aaron Kimbrell 2023-08-04 17:48:45 -05:00 committed by GitHub
parent a29253d2f0
commit 7e2747a2d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,6 +262,10 @@ int main(int argc, char** argv) {
Game::zoneManager->Initialize(LWOZONEID(zoneID, instanceID, cloneID));
g_CloneID = cloneID;
} else {
Game::entityManager->Initialize();
}
// pre calculate the FDB checksum
if (Game::config->GetValue("check_fdb") == "1") {
std::ifstream fileStream;
@ -302,9 +306,6 @@ int main(int argc, char** argv) {
Game::logger->Log("WorldServer", "FDB Checksum calculated as: %s", databaseChecksum.c_str());
}
} else {
Game::entityManager->Initialize();
}
uint32_t currentFrameDelta = highFrameDelta;
// These values are adjust them selves to the current framerate should it update.