mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Post merge fixes
This commit is contained in:
parent
c5447778a6
commit
683a81a6c8
@ -1442,7 +1442,7 @@ bool Client::OPCharCreate(char *name, CharCreate_Struct *cc)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
clog(WORLD__CLIENT, "Found 'TitaniumStartZoneID' rule setting: %i", RuleI(World, TitaniumStartZoneID));
|
Log.Out(Logs::General, Logs::World_Server, "Found 'TitaniumStartZoneID' rule setting: %i", RuleI(World, TitaniumStartZoneID));
|
||||||
if (RuleI(World, TitaniumStartZoneID) > 0) { /* if there's a startzone variable put them in there */
|
if (RuleI(World, TitaniumStartZoneID) > 0) { /* if there's a startzone variable put them in there */
|
||||||
|
|
||||||
pp.zone_id = RuleI(World, TitaniumStartZoneID);
|
pp.zone_id = RuleI(World, TitaniumStartZoneID);
|
||||||
|
|||||||
@ -3509,32 +3509,6 @@ bool EntityList::LimitCheckName(const char *npc_name)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EntityList::RadialSetLogging(Mob *around, bool enabled, bool clients,
|
|
||||||
bool non_clients, float range)
|
|
||||||
{
|
|
||||||
float range2 = range * range;
|
|
||||||
|
|
||||||
auto it = mob_list.begin();
|
|
||||||
while (it != mob_list.end()) {
|
|
||||||
Mob *mob = it->second;
|
|
||||||
|
|
||||||
++it;
|
|
||||||
|
|
||||||
if (mob->IsClient()) {
|
|
||||||
if (!clients)
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
if (!non_clients)
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ComparativeDistance(around->GetPosition(), mob->GetPosition()) > range2)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void EntityList::UpdateHoTT(Mob *target)
|
void EntityList::UpdateHoTT(Mob *target)
|
||||||
{
|
{
|
||||||
auto it = client_list.begin();
|
auto it = client_list.begin();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user