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
+1 -1
View File
@@ -73,7 +73,7 @@ void Dolphin::onInit()
printf("Loading water...\n");
u32 spiralOffset = (u32)Math::sqrt(WATER_TILES_COUNT);
u32 spiralOffset = (u32)sqrt(WATER_TILES_COUNT);
waterDrawList = new Mesh *[WATER_TILES_COUNT];
calcSpiral(spiralOffset, spiralOffset);
water[0].loadObj("water/", "water", WATER_TILE_SCALE, false);
@@ -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;
+1
View File
@@ -16,6 +16,7 @@
#include <modules/gif_sender.hpp>
#include <utils/debug.hpp>
#include <utils/math.hpp>
#include <stdlib.h>
// ----
// Constructors/Destructors