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:
Shocker
2010-09-28 08:21:51 +03:00
parent 192e972a59
commit 78803c9f09
44 changed files with 245 additions and 194 deletions
@@ -205,7 +205,7 @@ void SimpleAI::UpdateAI(const uint32 diff)
return;
//Spells
for (uint32 i = 0; i < 10; ++i)
for (uint32 i = 0; i < MAX_SIMPLEAI_SPELLS; ++i)
{
//Spell not valid
if (!Spell[i].Enabled || !Spell[i].Spell_Id)