summaryrefslogtreecommitdiffstats
path: root/src/Bindings/ManualBindings.cpp
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-08-28 13:48:02 +0200
committerpeterbell10 <peterbell10@live.co.uk>2017-08-28 14:48:07 +0200
commit3687ef397c83773fe3f3807a31ec435df6573dcf (patch)
treec3af8edec9174b44669fc5388c37a526a9a26ef0 /src/Bindings/ManualBindings.cpp
parentRepair the removed constructor of cCuboid `cCuboid(otherCuboid)` (#3966) (diff)
downloadcuberite-3687ef397c83773fe3f3807a31ec435df6573dcf.tar
cuberite-3687ef397c83773fe3f3807a31ec435df6573dcf.tar.gz
cuberite-3687ef397c83773fe3f3807a31ec435df6573dcf.tar.bz2
cuberite-3687ef397c83773fe3f3807a31ec435df6573dcf.tar.lz
cuberite-3687ef397c83773fe3f3807a31ec435df6573dcf.tar.xz
cuberite-3687ef397c83773fe3f3807a31ec435df6573dcf.tar.zst
cuberite-3687ef397c83773fe3f3807a31ec435df6573dcf.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/ManualBindings.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp
index ee9cb61e9..f329c0020 100644
--- a/src/Bindings/ManualBindings.cpp
+++ b/src/Bindings/ManualBindings.cpp
@@ -2995,7 +2995,7 @@ static int tolua_cLineBlockTracer_FirstSolidHitTrace(lua_State * tolua_S)
Vector3d hitCoords;
Vector3i hitBlockCoords;
eBlockFace hitBlockFace;
- auto isHit = cLineBlockTracer::FirstSolidHitTrace(*world, start, end, hitCoords, hitBlockCoords, hitBlockFace);
+ auto isHit = cLineBlockTracer::FirstSolidHitTrace(*world, *start, *end, hitCoords, hitBlockCoords, hitBlockFace);
L.Push(isHit);
if (!isHit)
{
@@ -3093,7 +3093,7 @@ static int tolua_cLineBlockTracer_LineOfSightTrace(lua_State * tolua_S)
}
int lineOfSight = cLineBlockTracer::losAirWater;
L.GetStackValue(idx + 7, lineOfSight);
- L.Push(cLineBlockTracer::LineOfSightTrace(*world, start, end, lineOfSight));
+ L.Push(cLineBlockTracer::LineOfSightTrace(*world, *start, *end, lineOfSight));
return 1;
}
@@ -3532,7 +3532,7 @@ static int tolua_cBoundingBox_CalcLineIntersection(lua_State * a_LuaState)
bool res;
if (L.GetStackValues(2, min, max, pt1, pt2)) // Try the static signature first
{
- res = cBoundingBox::CalcLineIntersection(min, max, pt1, pt2, lineCoeff, blockFace);
+ res = cBoundingBox::CalcLineIntersection(*min, *max, *pt1, *pt2, lineCoeff, blockFace);
}
else
{
@@ -3543,7 +3543,7 @@ static int tolua_cBoundingBox_CalcLineIntersection(lua_State * a_LuaState)
tolua_error(a_LuaState, "Invalid function params. Expected either bbox:CalcLineIntersection(pt1, pt2) or cBoundingBox:CalcLineIntersection(min, max, pt1, pt2).", nullptr);
return 0;
}
- res = bbox->CalcLineIntersection(pt1, pt2, lineCoeff, blockFace);
+ res = bbox->CalcLineIntersection(*pt1, *pt2, lineCoeff, blockFace);
}
L.Push(res);
if (res)