mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[10712] Startup checks for gossip_menu and gosip_menu_option table data.
Existance `gosup_menu` id refercned from gameobject field and unused meni ids activated only with disabled LogFilter_DbStrictedCheck.
This commit is contained in:
parent
534ff29f15
commit
a87648c56b
6 changed files with 67 additions and 14 deletions
|
|
@ -13062,7 +13062,10 @@ uint32 Player::GetGossipTextId(uint32 menuId)
|
|||
for(GossipMenusMap::const_iterator itr = pMenuBounds.first; itr != pMenuBounds.second; ++itr)
|
||||
{
|
||||
if (sObjectMgr.IsPlayerMeetToCondition(this, itr->second.cond_1) && sObjectMgr.IsPlayerMeetToCondition(this, itr->second.cond_2))
|
||||
{
|
||||
textId = itr->second.text_id;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return textId;
|
||||
|
|
@ -17485,7 +17488,7 @@ void Player::_SaveStats()
|
|||
void Player::outDebugStatsValues() const
|
||||
{
|
||||
// optimize disabled debug output
|
||||
if(!sLog.HasLogLevelOrHigher(LOG_LVL_DEBUG) || (sLog.getLogFilter() & LOG_FILTER_PLAYER_STATS)!=0)
|
||||
if(!sLog.HasLogLevelOrHigher(LOG_LVL_DEBUG) || sLog.HasLogFilter(LOG_FILTER_PLAYER_STATS))
|
||||
return;
|
||||
|
||||
sLog.outDebug("HP is: \t\t\t%u\t\tMP is: \t\t\t%u",GetMaxHealth(), GetMaxPower(POWER_MANA));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue