DONE!
This commit is contained in:
parent
d00acca227
commit
7bf926378b
@ -62,10 +62,7 @@ void Chunk::CheckNeighbors(int x, int z, World* world) {
|
||||
world->ChunkAt((m_posX - cx) * CHUNK_SIZE_X, 1, (m_posY - cy + 1) * CHUNK_SIZE_Z)->MakeDirty();
|
||||
}
|
||||
|
||||
void Chunk::GetPosition(int& x, int& y) const {
|
||||
x = m_posX;
|
||||
y = m_posY;
|
||||
}
|
||||
void Chunk::GetPosition(int& x, int& y) const { x = m_posX; y = m_posY; }
|
||||
|
||||
void Chunk::Update(BlockInfo* blockinfo[BTYPE_LAST], World* world) {
|
||||
float u, v, s;
|
||||
|
@ -149,8 +149,7 @@ void Player::ApplyTransformation(Transformation& transformation, bool rel) const
|
||||
if (rel) transformation.ApplyTranslation(-GetPOV());
|
||||
}
|
||||
|
||||
Vector3f Player::GetPosition() const { return Vector3f(m_position.x + CHUNK_SIZE_X * WORLD_SIZE_X / 2, m_position.y, m_position.z + CHUNK_SIZE_Z * WORLD_SIZE_Y / 2);
|
||||
}
|
||||
Vector3f Player::GetPosition() const { return Vector3f(m_position.x + CHUNK_SIZE_X * WORLD_SIZE_X / 2, m_position.y, m_position.z + CHUNK_SIZE_Z * WORLD_SIZE_Y / 2); }
|
||||
|
||||
Vector3f Player::GetVelocity() const { return m_velocity; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user