Description: Backport fix for wfmath API change
 Will not be needed after Cyphesis 0.6.2
Origin: https://github.com/worldforge/cyphesis/commit/49c9d83629bbdf60c07101d06155226821d4e989
Last-Update: 2016-08-29

--- a/rulesets/SpawnerProperty.cpp
+++ b/rulesets/SpawnerProperty.cpp
@@ -229,9 +229,9 @@
     WFMath::MTRand& rand = WFMath::MTRand::instance;
     if (m_mode_external) {
         //randomize position and rotation
-        float angle = rand.randf(WFMath::numeric_constants<float>::pi() * 2);
+        float angle = rand.rand<float>() * WFMath::numeric_constants<float>::pi() * 2;
         //place it between 0 and 2 meters away
-        float distance = rand.randf(2.0f);
+        float distance = rand.rand<float>() * 2.0f;
         //if we're solid we should make sure it's not within our own radius
         if (e->m_location.isSolid()) {
             distance += e->m_location.radius();
@@ -259,7 +259,7 @@
             ::addToEntity(WFMath::Point<3>(x, y, 0), create_arg->modifyPos());
         }
     }
-    float rotation = rand.randf(WFMath::numeric_constants<float>::pi() * 2);
+    float rotation = rand.rand<float>() * WFMath::numeric_constants<float>::pi() * 2;
     WFMath::Quaternion orientation(WFMath::Vector<3>(0, 0, 1), rotation);
     create_arg->setAttr("orientation", orientation.toAtlas());
 
