Core/Random: Changed random functions returning doubles to return floats
* They were all cast to float at use anyway * Improves roll_chance_f performance (rand32() is now called internally by uniform_real_distribution once instead of twice)
This commit is contained in:
1 parent
56dc3bddd5
commit
7d57ef7299
13 files changed
+26
-26
No files matched your search
@@ -646,7 +646,7 @@ class TC_GAME_API SpellScript : public _SpellScript
|
||||
// returns: WorldLocation which was selected as a spell destination or nullptr
|
||||
WorldLocation const* GetExplTargetDest() const;
|
||||
|
||||
void SetExplTargetDest(WorldLocation& loc);
|
||||
void SetExplTargetDest(WorldLocation const& loc);
|
||||
|
||||
// returns: WorldObject which was selected as an explicit spell target or nullptr if there's no target
|
||||
WorldObject* GetExplTargetWorldObject() const;
|
||||
|
||||
Reference in new issue
Block a user