Magic numbers cleanup:
- Replace many magic numbers with constants - Use enum for vehicle flags/seat flags - Correct structure for ItemRandomSuffixEntry --HG-- branch : trunk
This commit is contained in:
1 parent
192e972a59
commit
78803c9f09
44 files changed
+245
-194
No files matched your search
@@ -19,6 +19,8 @@ enum CastTarget
|
||||
CAST_JUSTDIED_KILLER, //Only works within JustDied function
|
||||
};
|
||||
|
||||
#define MAX_SIMPLEAI_SPELLS 10
|
||||
|
||||
struct SimpleAI : public ScriptedAI
|
||||
{
|
||||
SimpleAI(Creature *c);// : ScriptedAI(c);
|
||||
@@ -61,10 +63,10 @@ public:
|
||||
//3 texts to many?
|
||||
int32 TextId[3];
|
||||
uint32 Text_Sound[3];
|
||||
}Spell[10];
|
||||
}Spell[MAX_SIMPLEAI_SPELLS];
|
||||
|
||||
protected:
|
||||
uint32 Spell_Timer[10];
|
||||
uint32 Spell_Timer[MAX_SIMPLEAI_SPELLS];
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user