aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.h
diff options
context:
space:
mode:
authorQAston <none@none>2009-08-03 16:35:33 +0200
committerQAston <none@none>2009-08-03 16:35:33 +0200
commit7569bb343a532ca6d080ad48bcb8275b3a182ddb (patch)
tree4d2111fce42ae760a1feabea207eb2f3c089b911 /src/game/Object.h
parentb4a2ece56cf0ea04f972d73982e8a3af33c62135 (diff)
*Add Rate.RepairCost config option - by MaXiMiUS
*Apply tc sql coding style to 4737_world_TDB.sql - by Drahy *Fix build with MAP_BASED_RAND_GEN option. --HG-- branch : trunk
Diffstat (limited to 'src/game/Object.h')
-rw-r--r--src/game/Object.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/Object.h b/src/game/Object.h
index e8f9d9aafd7..98103384ac7 100644
--- a/src/game/Object.h
+++ b/src/game/Object.h
@@ -560,11 +560,11 @@ class TRINITY_DLL_SPEC WorldObject : public Object
bool IsTempWorldObject;
#ifdef MAP_BASED_RAND_GEN
- int32 irand(int32 min, int32 max) const { int32 (GetMap()->mtRand.randInt(max - min)) + min; }
- uint32 urand(uint32 min, uint32 max) const { GetMap()->mtRand.randInt(max - min) + min}
- int32 rand32() const { GetMap()->mtRand.randInt()}
- double rand_norm() const { GetMap()->mtRand.randExc()}
- double rand_chance() const { GetMap()->mtRand.randExc(100.0)}
+ int32 irand(int32 min, int32 max) const { return int32 (GetMap()->mtRand.randInt(max - min)) + min; }
+ uint32 urand(uint32 min, uint32 max) const { return GetMap()->mtRand.randInt(max - min) + min;}
+ int32 rand32() const { return GetMap()->mtRand.randInt();}
+ double rand_norm() const { return GetMap()->mtRand.randExc();}
+ double rand_chance() const { return GetMap()->mtRand.randExc(100.0);}
#endif
protected: