gcc porting - successful compilation
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <modules/gif_sender.hpp>
|
||||
#include <utils/debug.hpp>
|
||||
#include <utils/math.hpp>
|
||||
#include <stdlib.h>
|
||||
|
||||
// ----
|
||||
// Constructors/Destructors
|
||||
|
||||
Reference in New Issue
Block a user