mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[9335] Clarify error log message after rewrite of monster_* to spline_* flags
Also change name of related field in code. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
0fbac741b3
commit
08c364214b
4 changed files with 7 additions and 7 deletions
|
|
@ -1691,8 +1691,8 @@ bool Creature::LoadCreaturesAddon(bool reload)
|
|||
if (cainfo->emote != 0)
|
||||
SetUInt32Value(UNIT_NPC_EMOTESTATE, cainfo->emote);
|
||||
|
||||
if (cainfo->move_flags != 0)
|
||||
SetSplineFlags(SplineFlags(cainfo->move_flags));
|
||||
if (cainfo->splineFlags != 0)
|
||||
SetSplineFlags(SplineFlags(cainfo->splineFlags));
|
||||
|
||||
if(cainfo->auras)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ struct CreatureDataAddon
|
|||
uint32 bytes1;
|
||||
uint32 bytes2;
|
||||
uint32 emote;
|
||||
uint32 move_flags;
|
||||
uint32 splineFlags;
|
||||
CreatureDataAddonAura const* auras; // loaded as char* "spell1 eff1 spell2 eff2 ... "
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -855,10 +855,10 @@ void ObjectMgr::LoadCreatureAddons(SQLStorage& creatureaddons, char const* entry
|
|||
if (!sEmotesStore.LookupEntry(addon->emote))
|
||||
sLog.outErrorDb("Creature (%s %u) have invalid emote (%u) defined in `%s`.", entryName, addon->guidOrEntry, addon->emote, creatureaddons.GetTableName());
|
||||
|
||||
if (addon->move_flags & (SPLINEFLAG_TRAJECTORY|SPLINEFLAG_UNKNOWN3))
|
||||
if (addon->splineFlags & (SPLINEFLAG_TRAJECTORY|SPLINEFLAG_UNKNOWN3))
|
||||
{
|
||||
sLog.outErrorDb("Creature (%s %u) movement flags mask defined in `%s` include forbidden flags (" I32FMT ") that can crash client, cleanup at load.", entryName, addon->guidOrEntry, creatureaddons.GetTableName(), (SPLINEFLAG_TRAJECTORY|SPLINEFLAG_UNKNOWN3));
|
||||
const_cast<CreatureDataAddon*>(addon)->move_flags &= ~(SPLINEFLAG_TRAJECTORY|SPLINEFLAG_UNKNOWN3);
|
||||
sLog.outErrorDb("Creature (%s %u) spline flags mask defined in `%s` include forbidden flags (" I32FMT ") that can crash client, cleanup at load.", entryName, addon->guidOrEntry, creatureaddons.GetTableName(), (SPLINEFLAG_TRAJECTORY|SPLINEFLAG_UNKNOWN3));
|
||||
const_cast<CreatureDataAddon*>(addon)->splineFlags &= ~(SPLINEFLAG_TRAJECTORY|SPLINEFLAG_UNKNOWN3);
|
||||
}
|
||||
|
||||
ConvertCreatureAddonAuras(const_cast<CreatureDataAddon*>(addon), creatureaddons.GetTableName(), entryName);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9334"
|
||||
#define REVISION_NR "9335"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue