gcc porting - successful compilation

This commit is contained in:
h4570
2021-01-12 19:34:30 +01:00
parent 67bbe2e674
commit bc41afdf89
12 changed files with 249 additions and 254 deletions
@@ -12,6 +12,7 @@
#include <utils/math.hpp>
#include <utils/debug.hpp>
#include <stdlib.h>
// ----
// Constructors/Destructors
@@ -26,7 +27,7 @@ FloorManager::FloorManager(int t_floorAmount, TextureRepository *t_texRepo)
texRepo = t_texRepo;
floorAmount = t_floorAmount;
spirals = new Point[t_floorAmount];
int floorSpiralMaxOffset = (int)Math::sqrt(t_floorAmount);
int floorSpiralMaxOffset = (int)sqrt(t_floorAmount);
calcSpiral(floorSpiralMaxOffset, floorSpiralMaxOffset);
initFloors();
trick = 0.0F;