Rétrécissement de la zone de trigger de tapis roulant, assemblage ur VS2022
This commit is contained in:
parent
e8a9cbb96e
commit
cdc926bb39
@ -41,10 +41,10 @@ BlockType World::BlockAt(const Vector3f& pos, BlockType defaultBlockType) const
|
|||||||
void World::TransposeWorld(Player& player, Bullet* bullets[MAX_BULLETS]) {
|
void World::TransposeWorld(Player& player, Bullet* bullets[MAX_BULLETS]) {
|
||||||
int x = 0, y = 0;
|
int x = 0, y = 0;
|
||||||
|
|
||||||
if (player.GetPosition().x > (WORLD_SIZE_X * CHUNK_SIZE_X) * .66f) ++x;
|
if (player.GetPosition().x > (WORLD_SIZE_X * CHUNK_SIZE_X) * .6f) ++x;
|
||||||
else if (player.GetPosition().x < (WORLD_SIZE_X * CHUNK_SIZE_X) * .33f) --x;
|
else if (player.GetPosition().x < (WORLD_SIZE_X * CHUNK_SIZE_X) * .4f) --x;
|
||||||
if (player.GetPosition().z > (WORLD_SIZE_Y * CHUNK_SIZE_Z) * .66f) ++y;
|
if (player.GetPosition().z > (WORLD_SIZE_Y * CHUNK_SIZE_Z) * .6f) ++y;
|
||||||
else if (player.GetPosition().z < (WORLD_SIZE_Y * CHUNK_SIZE_Z) * .33f) --y;
|
else if (player.GetPosition().z < (WORLD_SIZE_Y * CHUNK_SIZE_Z) * .4f) --y;
|
||||||
|
|
||||||
if (!x && !y) return;
|
if (!x && !y) return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user