From f5f62026bf0ce0464811464b16689f9d3aa4abdd Mon Sep 17 00:00:00 2001 From: LaG1924 Date: Mon, 7 Jun 2021 18:15:32 +0500 Subject: Fixed MacOS OpenGL errors --- src/World.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/World.cpp') diff --git a/src/World.cpp b/src/World.cpp index c3246dc..e5e3fe8 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -201,7 +201,7 @@ void World::UpdatePhysics(float delta) { BlockId block = this->GetBlockId(Vector(x, y, z)); if (block.id == 0 || !GetBlockInfo(block).collides) continue; - AABB blockColl{ x,y,z,1.0,1.0,1.0 }; + AABB blockColl{ (double)x,(double)y,(double)z,1.0,1.0,1.0 }; if (TestCollision(entityCollBox, blockColl)) { return { true }; } -- cgit v1.2.3