Skip to content

Commit

Permalink
[10961] Avoid use scripting support wrappers for internal server code.
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirMangos committed Jan 4, 2011
1 parent d037775 commit 28004ea
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/game/CreatureEventAI.cpp
Expand Up @@ -460,7 +460,7 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
m_creature->setFaction(action.set_faction.factionId);
else
{
if (CreatureInfo const* ci = GetCreatureTemplateStore(m_creature->GetEntry()))
if (CreatureInfo const* ci = ObjectMgr::GetCreatureTemplate(m_creature->GetEntry()))
{
//if no id provided, assume reset and then use default
if (m_creature->getFaction() != ci->faction_A)
Expand All @@ -476,7 +476,7 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
//set model based on entry from creature_template
if (action.morph.creatureId)
{
if (CreatureInfo const* ci = GetCreatureTemplateStore(action.morph.creatureId))
if (CreatureInfo const* ci = ObjectMgr::GetCreatureTemplate(action.morph.creatureId))
{
uint32 display_id = Creature::ChooseDisplayId(ci);
m_creature->SetDisplayId(display_id);
Expand Down Expand Up @@ -836,7 +836,7 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
// set model based on entry from creature_template
if (action.mount.creatureId)
{
if (CreatureInfo const* cInfo = GetCreatureTemplateStore(action.mount.creatureId))
if (CreatureInfo const* cInfo = ObjectMgr::GetCreatureTemplate(action.mount.creatureId))
{
uint32 display_id = Creature::ChooseDisplayId(cInfo);
m_creature->Mount(display_id);
Expand Down
4 changes: 2 additions & 2 deletions src/game/Map.cpp
Expand Up @@ -2714,7 +2714,7 @@ void Map::ScriptsProcess()
pOwner->SetDisplayId(step.script->morph.creatureOrModelEntry);
else
{
CreatureInfo const* ci = GetCreatureTemplateStore(step.script->morph.creatureOrModelEntry);
CreatureInfo const* ci = ObjectMgr::GetCreatureTemplate(step.script->morph.creatureOrModelEntry);
uint32 display_id = Creature::ChooseDisplayId(ci);

pOwner->SetDisplayId(display_id);
Expand Down Expand Up @@ -2771,7 +2771,7 @@ void Map::ScriptsProcess()
pOwner->Mount(step.script->mount.creatureOrModelEntry);
else
{
CreatureInfo const* ci = GetCreatureTemplateStore(step.script->mount.creatureOrModelEntry);
CreatureInfo const* ci = ObjectMgr::GetCreatureTemplate(step.script->mount.creatureOrModelEntry);
uint32 display_id = Creature::ChooseDisplayId(ci);

pOwner->Mount(display_id);
Expand Down
2 changes: 1 addition & 1 deletion src/game/ObjectMgr.cpp
Expand Up @@ -8084,7 +8084,7 @@ void ObjectMgr::LoadMailLevelRewards()
continue;
}

if(!GetCreatureTemplateStore(senderEntry))
if(!GetCreatureTemplate(senderEntry))
{
sLog.outErrorDb("Table `mail_level_reward` have nonexistent sender creature entry (%u) for level %u that invalid not include any player races, ignoring.",senderEntry,level);
continue;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10960"
#define REVISION_NR "10961"
#endif // __REVISION_NR_H__

0 comments on commit 28004ea

Please sign in to comment.