mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Feature] Add optional is_forced parameter to Zone::Repop (#4046)
* [Feature] Add optional `is_force` parameter to Zone::Repop # Perl - Add `quest::repopzone(is_force)`. # Lua - Add `eq.repop_zone(is_force)`. # Commands - Cleanup `#repop` to use new parameter in `Zone::Repop`. # Notes - Allows operators to forcefully repop a zone without using a second method to clear the respawn timers. * is_forced * Update repop.cpp * Update repop.cpp
This commit is contained in:
+5
-5
@@ -926,11 +926,11 @@ void QuestManager::depopzone(bool StartSpawnTimer) {
|
||||
}
|
||||
}
|
||||
|
||||
void QuestManager::repopzone() {
|
||||
if(zone) {
|
||||
zone->Repop();
|
||||
}
|
||||
else {
|
||||
void QuestManager::repopzone(bool is_forced)
|
||||
{
|
||||
if (zone) {
|
||||
zone->Repop(is_forced);
|
||||
} else {
|
||||
LogQuests("QuestManager::repopzone called with nullptr zone. Probably syntax error in quest file");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user