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
@@ -121,7 +121,7 @@ float SpellImplicitTargetInfo::CalcDirectionAngle(SpellEffectInfo const& effectI
|
||||
case TARGET_DIR_FRONT_LEFT:
|
||||
return static_cast<float>(M_PI/4);
|
||||
case TARGET_DIR_RANDOM:
|
||||
return float(rand_norm())*static_cast<float>(2*M_PI);
|
||||
return rand_norm() * static_cast<float>(2 * M_PI);
|
||||
case TARGET_DIR_SUMMON:
|
||||
// This direction does alter its angle based on what is being summoned.
|
||||
// Creatures are being summoned on the left, gameobjects infront
|
||||
|
||||
Reference in new issue
Block a user