From 7bf926378b949411622571381a44f1c1adaee569 Mon Sep 17 00:00:00 2001 From: MarcEricMartel <74071476+MarcEricMartel@users.noreply.github.com> Date: Mon, 6 Dec 2021 12:05:05 -0500 Subject: [PATCH] DONE! --- SQCSim2021/chunk.cpp | 5 +---- SQCSim2021/player.cpp | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/SQCSim2021/chunk.cpp b/SQCSim2021/chunk.cpp index c90c971..85df7ff 100644 --- a/SQCSim2021/chunk.cpp +++ b/SQCSim2021/chunk.cpp @@ -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; diff --git a/SQCSim2021/player.cpp b/SQCSim2021/player.cpp index 0754a09..36ba5fe 100644 --- a/SQCSim2021/player.cpp +++ b/SQCSim2021/player.cpp @@ -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; }