Skip to content

Commit dbd2fda

Browse files
Fixed warning
1 parent b767ee0 commit dbd2fda

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Rebuild of cphysics/Rebuild of cphysics/include/CPhysics/Shadowcast.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class RayAngleInformation {
2424

2525
class ShadowCasting {
2626
public:
27-
ShadowCasting(const Vectors2D& startPoint, unsigned int distance);
27+
ShadowCasting(const Vectors2D& startPoint, real distance);
2828

2929
void updateProjections(const std::vector<Body*>& bodiesToEvaluate);
3030

@@ -38,6 +38,6 @@ class ShadowCasting {
3838

3939
private:
4040
std::vector<RayAngleInformation> rayData;
41-
unsigned int distance;
41+
real distance;
4242
Vectors2D startPoint;
43-
};
43+
};

Rebuild of cphysics/Rebuild of cphysics/src/Shadowcast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include <algorithm>
66

7-
ShadowCasting::ShadowCasting(const Vectors2D& startPoint, unsigned int distance)
7+
ShadowCasting::ShadowCasting(const Vectors2D& startPoint, real distance)
88
{
99
this->startPoint = startPoint;
1010
this->distance = distance;

0 commit comments

Comments
 (0)