mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
chore: some zone maintenance (#1778)
This commit is contained in:
@@ -69,22 +69,19 @@ namespace {
|
||||
|
||||
void PerformanceManager::SelectProfile(LWOMAPID mapID) {
|
||||
// Try to get it from zoneTable
|
||||
CDZoneTableTable* zoneTable = CDClientManager::GetTable<CDZoneTableTable>();
|
||||
if (zoneTable) {
|
||||
const CDZoneTable* zone = zoneTable->Query(mapID);
|
||||
if (zone) {
|
||||
if (zone->serverPhysicsFramerate == "high") {
|
||||
m_CurrentProfile = highFrameDelta;
|
||||
return;
|
||||
}
|
||||
if (zone->serverPhysicsFramerate == "medium") {
|
||||
m_CurrentProfile = mediumFrameDelta;
|
||||
return;
|
||||
}
|
||||
if (zone->serverPhysicsFramerate == "low") {
|
||||
m_CurrentProfile = lowFrameDelta;
|
||||
return;
|
||||
}
|
||||
const CDZoneTable* zone = CDZoneTableTable::Query(mapID);
|
||||
if (zone) {
|
||||
if (zone->serverPhysicsFramerate == "high") {
|
||||
m_CurrentProfile = highFrameDelta;
|
||||
return;
|
||||
}
|
||||
if (zone->serverPhysicsFramerate == "medium") {
|
||||
m_CurrentProfile = mediumFrameDelta;
|
||||
return;
|
||||
}
|
||||
if (zone->serverPhysicsFramerate == "low") {
|
||||
m_CurrentProfile = lowFrameDelta;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user