mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[10373] Drop unused team-argument in ChooseDisplayId -function
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
a17450047b
commit
a15b0916b6
7 changed files with 12 additions and 20 deletions
|
|
@ -229,7 +229,7 @@ bool Creature::InitEntry(uint32 Entry, uint32 team, const CreatureData *data )
|
|||
// known valid are: CLASS_WARRIOR,CLASS_PALADIN,CLASS_ROGUE,CLASS_MAGE
|
||||
SetByteValue(UNIT_FIELD_BYTES_0, 1, uint8(cinfo->unit_class));
|
||||
|
||||
uint32 display_id = ChooseDisplayId(team, GetCreatureInfo(), data);
|
||||
uint32 display_id = ChooseDisplayId(GetCreatureInfo(), data);
|
||||
if (!display_id) // Cancel load if no display id
|
||||
{
|
||||
sLog.outErrorDb("Creature (Entry: %u) has no model defined in table `creature_template`, can't load.", Entry);
|
||||
|
|
@ -346,7 +346,7 @@ bool Creature::UpdateEntry(uint32 Entry, uint32 team, const CreatureData *data,
|
|||
return true;
|
||||
}
|
||||
|
||||
uint32 Creature::ChooseDisplayId(uint32 team, const CreatureInfo *cinfo, const CreatureData *data /*= NULL*/)
|
||||
uint32 Creature::ChooseDisplayId(const CreatureInfo *cinfo, const CreatureData *data /*= NULL*/)
|
||||
{
|
||||
// Use creature model explicit, override template (creature.modelid)
|
||||
if (data && data->modelid_override)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue