mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-04 19:53:52 +00:00
Prevent horses (player mounts) from being depopped during a #repop
This commit is contained in:
parent
6db350790e
commit
db380944ac
@ -2510,6 +2510,9 @@ void EntityList::Depop(bool StartSpawnTimer)
|
||||
if (own && own->IsClient())
|
||||
continue;
|
||||
|
||||
if (pnpc->IsHorse)
|
||||
continue;
|
||||
|
||||
if (pnpc->IsFindable())
|
||||
UpdateFindableNPCState(pnpc, true);
|
||||
|
||||
|
||||
@ -36,6 +36,8 @@ Horse::Horse(Client *_owner, uint16 spell_id, const glm::vec4& position)
|
||||
strn0cpy(name, _owner->GetCleanName(), 55);
|
||||
strcat(name,"`s_Mount00");
|
||||
|
||||
is_horse = true;
|
||||
|
||||
owner = _owner;
|
||||
}
|
||||
|
||||
|
||||
@ -1405,6 +1405,8 @@ protected:
|
||||
std::unordered_map<uint32, std::pair<uint32, uint32>> aa_ranks;
|
||||
Timer aa_timers[aaTimerMax];
|
||||
|
||||
bool is_horse;
|
||||
|
||||
private:
|
||||
void _StopSong(); //this is not what you think it is
|
||||
Mob* target;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user