Rétrécissement de la zone de trigger de tapis roulant, assemblage ur VS2022
This commit is contained in:
		| @@ -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; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user