mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Replaced most of usages of CRandomGenerator with vstd::RNG in library
This commit is contained in:
@ -13,6 +13,8 @@
|
||||
#include "StdInc.h"
|
||||
#include "PenroseTiling.h"
|
||||
|
||||
#include <vstd/RNG.h>
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
|
||||
@ -143,7 +145,7 @@ void PenroseTiling::split(Triangle& p, std::vector<Point2D>& points,
|
||||
return;
|
||||
}
|
||||
|
||||
std::set<Point2D> PenroseTiling::generatePenroseTiling(size_t numZones, CRandomGenerator * rand)
|
||||
std::set<Point2D> PenroseTiling::generatePenroseTiling(size_t numZones, vstd::RNG * rand)
|
||||
{
|
||||
float scale = 173.2f / (numZones * 1.5f + 20);
|
||||
float polyAngle = (2 * PI_CONSTANT) / POLY;
|
||||
|
Reference in New Issue
Block a user