* Fix SDL build.

This commit is contained in:
iProgramInCpp
2023-08-08 11:32:51 +03:00
parent 38294ba25d
commit 0ab1aa0a51
4 changed files with 12 additions and 3 deletions

View File

@@ -27,7 +27,6 @@ public:
{
field_0 = -1;
field_4 = 0;
m_id;
field_C = 0.0f;
field_10 = 0.0f;
field_14 = 0.0f;
@@ -36,6 +35,10 @@ public:
}
RenderChunk(GLuint a1, int a2)
{
field_C = 0.0f;
field_10 = 0.0f;
field_14 = 0.0f;
m_id = ++runningId;
field_0 = a1;
field_4 = a2;

View File

@@ -7,6 +7,7 @@
********************************************************************/
#include "Textures.hpp"
#include "client/common/Utils.hpp"
bool Textures::MIPMAP = false;

View File

@@ -39,19 +39,22 @@ struct EntityPos
EntityPos()
{
m_yaw = 0, m_pitch = 0;
m_bHasRot, m_bHasPos;
m_bHasRot = false, m_bHasPos = false;
};
EntityPos(const Vec3& pos)
{
m_pos = pos;
m_yaw = 0, m_pitch = 0;
m_bHasPos = true;
m_bHasRot = false;
}
EntityPos(float yaw, float pitch)
{
m_yaw = yaw;
m_pitch = pitch;
m_bHasPos = false;
m_bHasRot = true;
}

View File

@@ -19,7 +19,9 @@ BiomeSource* BiomeSource::init()
field_18 = 0;
field_1C = 0;
field_20 = new Biome * [256];
m_pPerlinNoise[3] = nullptr;
m_pPerlinNoise[0] = nullptr;
m_pPerlinNoise[1] = nullptr;
m_pPerlinNoise[2] = nullptr;
return this;
}