diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2017-08-30 16:04:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-30 16:04:09 +0200 |
commit | da0778dfaa6f82634b91cf981710ecc7809529ae (patch) | |
tree | a5f8c532a5f0ec50c1a2957395f2941cc070c226 /src/Bindings | |
parent | Protocol Spawn Position Should Use LastSentPosition (#3929) (diff) | |
parent | Add TOLUA_EXPOSITION for readability (diff) | |
download | cuberite-da0778dfaa6f82634b91cf981710ecc7809529ae.tar cuberite-da0778dfaa6f82634b91cf981710ecc7809529ae.tar.gz cuberite-da0778dfaa6f82634b91cf981710ecc7809529ae.tar.bz2 cuberite-da0778dfaa6f82634b91cf981710ecc7809529ae.tar.lz cuberite-da0778dfaa6f82634b91cf981710ecc7809529ae.tar.xz cuberite-da0778dfaa6f82634b91cf981710ecc7809529ae.tar.zst cuberite-da0778dfaa6f82634b91cf981710ecc7809529ae.zip |
Diffstat (limited to 'src/Bindings')
-rw-r--r-- | src/Bindings/ManualBindings.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp index d4477bf4e..38dc2cf83 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) |