Prevent horses (player mounts) from being depopped during a #repop

This commit is contained in:
Akkadius 2016-08-27 00:46:45 -05:00
parent 6db350790e
commit db380944ac
3 changed files with 7 additions and 0 deletions

View File

@ -2510,6 +2510,9 @@ void EntityList::Depop(bool StartSpawnTimer)
if (own && own->IsClient())
continue;
if (pnpc->IsHorse)
continue;
if (pnpc->IsFindable())
UpdateFindableNPCState(pnpc, true);

View File

@ -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;
}

View File

@ -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;