*Move some random generator functions to map class: functions in map/object/movementgenerator/spell

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-25 12:05:23 -05:00
parent 2478087b5c
commit c2588042e9
7 changed files with 36 additions and 25 deletions

View File

@@ -41,6 +41,10 @@ RandomMovementGenerator<Creature>::GetDestination(float &x, float &y, float &z)
return true;
}
#ifdef MAP_BASED_RAND_GEN
#define rand_norm() creature.rand_norm()
#endif
template<>
void
RandomMovementGenerator<Creature>::_setRandomLocation(Creature &creature)