From cdc926bb3996e7b098c2d77dc60cd89a14b91b92 Mon Sep 17 00:00:00 2001 From: MarcEricMartel <74071476+MarcEricMartel@users.noreply.github.com> Date: Mon, 13 Dec 2021 23:56:20 -0500 Subject: [PATCH] =?UTF-8?q?R=C3=A9tr=C3=A9cissement=20de=20la=20zone=20de?= =?UTF-8?q?=20trigger=20de=20tapis=20roulant,=20assemblage=20ur=20VS2022?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SQCSim2021/world.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SQCSim2021/world.cpp b/SQCSim2021/world.cpp index 61c5d51..7919249 100644 --- a/SQCSim2021/world.cpp +++ b/SQCSim2021/world.cpp @@ -41,10 +41,10 @@ BlockType World::BlockAt(const Vector3f& pos, BlockType defaultBlockType) const void World::TransposeWorld(Player& player, Bullet* bullets[MAX_BULLETS]) { int x = 0, y = 0; - if (player.GetPosition().x > (WORLD_SIZE_X * CHUNK_SIZE_X) * .66f) ++x; - else if (player.GetPosition().x < (WORLD_SIZE_X * CHUNK_SIZE_X) * .33f) --x; - if (player.GetPosition().z > (WORLD_SIZE_Y * CHUNK_SIZE_Z) * .66f) ++y; - else if (player.GetPosition().z < (WORLD_SIZE_Y * CHUNK_SIZE_Z) * .33f) --y; + if (player.GetPosition().x > (WORLD_SIZE_X * CHUNK_SIZE_X) * .6f) ++x; + else if (player.GetPosition().x < (WORLD_SIZE_X * CHUNK_SIZE_X) * .4f) --x; + if (player.GetPosition().z > (WORLD_SIZE_Y * CHUNK_SIZE_Z) * .6f) ++y; + else if (player.GetPosition().z < (WORLD_SIZE_Y * CHUNK_SIZE_Z) * .4f) --y; if (!x && !y) return;