*Use dynamic cast for ai cast.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-04 17:03:43 -05:00
parent 0f531569a0
commit 08e48f5084
76 changed files with 259 additions and 257 deletions
@@ -17,9 +17,11 @@
#ifdef USE_DYNAMIC_CAST
#define CAST_PLR(a) (dynamic_cast<Player*>(a))
#define CAST_CRE(a) (dynamic_cast<Creature*>(a))
#define CAST_AI(a,b) (dynamic_cast<a*>(b))
#else
#define CAST_PLR(a) (static_cast<Player*>(a))
#define CAST_CRE(a) (static_cast<Creature*>(a))
#define CAST_AI(a,b) (static_cast<a*>(b))
#endif
class ScriptedInstance;