mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +00:00
Merge branch 'master' into Playerbot
# Conflicts: # src/server/game/Entities/Player/Player.cpp # src/server/game/Entities/Player/Player.h # src/server/game/Entities/Unit/Unit.h
This commit is contained in:
@@ -4027,3 +4027,21 @@ void Map::DeleteCorpseData()
|
||||
stmt->SetData(1, GetInstanceId());
|
||||
CharacterDatabase.Execute(stmt);
|
||||
}
|
||||
|
||||
std::string Map::GetDebugInfo() const
|
||||
{
|
||||
std::stringstream sstr;
|
||||
sstr << std::boolalpha
|
||||
<< "Id: " << GetId() << " InstanceId: " << GetInstanceId() << " Difficulty: " << std::to_string(GetDifficulty())
|
||||
<< " HasPlayers: " << HavePlayers();
|
||||
return sstr.str();
|
||||
}
|
||||
|
||||
std::string InstanceMap::GetDebugInfo() const
|
||||
{
|
||||
std::stringstream sstr;
|
||||
sstr << Map::GetDebugInfo() << "\n"
|
||||
<< std::boolalpha
|
||||
<< "ScriptId: " << GetScriptId() << " ScriptName: " << GetScriptName();
|
||||
return sstr.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user