diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2017-08-20 04:59:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-20 04:59:52 +0200 |
commit | c854b658828f66f69b13eb62c6a984de8e345b45 (patch) | |
tree | 0118efcdd8898db4857961009f8eac79ca27b4d4 /src/game/Entities/GameObject/GameObject.cpp | |
parent | fa147d84d29b6ebd99af6f8eb9eb39476d2f0228 (diff) | |
parent | 0dd68dfbee97eb7ed2c9bd4109ba3f2aed697860 (diff) |
Merge branch 'master' into master
Diffstat (limited to 'src/game/Entities/GameObject/GameObject.cpp')
-rw-r--r-- | src/game/Entities/GameObject/GameObject.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/game/Entities/GameObject/GameObject.cpp b/src/game/Entities/GameObject/GameObject.cpp index 58a476e5f1..9628a7f10e 100644 --- a/src/game/Entities/GameObject/GameObject.cpp +++ b/src/game/Entities/GameObject/GameObject.cpp @@ -1389,7 +1389,9 @@ void GameObject::Use(Unit* user) if (info->goober.eventId) { - ;//sLog->outDebug(LOG_FILTER_MAPSCRIPTS, "Goober ScriptStart id %u for GO entry %u (GUID %u).", info->goober.eventId, GetEntry(), GetDBTableGUIDLow()); +#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS) + sLog->outDebug(LOG_FILTER_MAPSCRIPTS, "Goober ScriptStart id %u for GO entry %u (GUID %u).", info->goober.eventId, GetEntry(), GetDBTableGUIDLow()); +#endif GetMap()->ScriptsStart(sEventScripts, info->goober.eventId, player, this); EventInform(info->goober.eventId); } @@ -1489,7 +1491,9 @@ void GameObject::Use(Unit* user) int32 roll = irand(1, 100); - ;//sLog->outStaticDebug("Fishing check (skill: %i zone min skill: %i chance %i roll: %i", skill, zone_skill, chance, roll); +#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS) + sLog->outStaticDebug("Fishing check (skill: %i zone min skill: %i chance %i roll: %i", skill, zone_skill, chance, roll); +#endif // but you will likely cause junk in areas that require a high fishing skill (not yet implemented) if (chance >= roll) @@ -1771,7 +1775,9 @@ void GameObject::Use(Unit* user) if (user->GetTypeId() != TYPEID_PLAYER || !sOutdoorPvPMgr->HandleCustomSpell(user->ToPlayer(), spellId, this)) sLog->outError("WORLD: unknown spell id %u at use action for gameobject (Entry: %u GoType: %u)", spellId, GetEntry(), GetGoType()); else - ;//sLog->outDebug(LOG_FILTER_OUTDOORPVP, "WORLD: %u non-dbc spell was handled by OutdoorPvP", spellId); +#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS) + sLog->outDebug(LOG_FILTER_OUTDOORPVP, "WORLD: %u non-dbc spell was handled by OutdoorPvP", spellId); +#endif return; } |