summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-21 22:06:31 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-21 22:06:31 +0200
commit3d72b338ffbd221f7518cdb8aae9f8c97aeabbde (patch)
treebbd43c686f7e96673b7a81fe74904b83126ed31c /src
parentAdded BlockStates (diff)
downloadAltCraft-3d72b338ffbd221f7518cdb8aae9f8c97aeabbde.tar
AltCraft-3d72b338ffbd221f7518cdb8aae9f8c97aeabbde.tar.gz
AltCraft-3d72b338ffbd221f7518cdb8aae9f8c97aeabbde.tar.bz2
AltCraft-3d72b338ffbd221f7518cdb8aae9f8c97aeabbde.tar.lz
AltCraft-3d72b338ffbd221f7518cdb8aae9f8c97aeabbde.tar.xz
AltCraft-3d72b338ffbd221f7518cdb8aae9f8c97aeabbde.tar.zst
AltCraft-3d72b338ffbd221f7518cdb8aae9f8c97aeabbde.zip
Diffstat (limited to 'src')
-rw-r--r--src/World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 9c66bc3..9a4bfd1 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -142,7 +142,7 @@ const Section &World::GetSection(Vector sectionPos) {
RaycastResult World::Raycast(glm::vec3 position, glm::vec3 direction) {
const float maxLen = 5.0;
const float step = 0.01;
- glm::vec3 pos;
+ glm::vec3 pos = glm::vec3(0.0);
float len = 0;
Vector blockPos = Vector(position.x,position.y,position.z);
while (GetBlockId(blockPos) == BlockId{0, 0} && len <= maxLen) {