mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 13:28:25 +00:00
Updated UCS versioning code - update your *.conf files
This commit is contained in:
@@ -32,6 +32,7 @@ extern uint32 numzones;
|
||||
extern bool holdzones;
|
||||
extern EQEmu::Random emu_random;
|
||||
extern WebInterfaceList web_interface;
|
||||
volatile bool UCSServerAvailable_ = false;
|
||||
void CatchSignal(int sig_num);
|
||||
|
||||
ZSList::ZSList()
|
||||
@@ -669,6 +670,16 @@ void ZSList::GetZoneIDList(std::vector<uint32> &zones) {
|
||||
}
|
||||
}
|
||||
|
||||
void ZSList::UpdateUCSServerAvailable(bool ucss_available) {
|
||||
UCSServerAvailable_ = ucss_available;
|
||||
auto outapp = new ServerPacket(ServerOP_UCSServerStatusReply, sizeof(UCSServerStatus_Struct));
|
||||
auto ucsss = (UCSServerStatus_Struct*)outapp->pBuffer;
|
||||
ucsss->available = (ucss_available ? 1 : 0);
|
||||
ucsss->timestamp = Timer::GetCurrentTime();
|
||||
SendPacket(outapp);
|
||||
safe_delete(outapp);
|
||||
}
|
||||
|
||||
void ZSList::WorldShutDown(uint32 time, uint32 interval)
|
||||
{
|
||||
if (time > 0) {
|
||||
|
||||
Reference in New Issue
Block a user