Skip to content

Commit 5b64eab

Browse files
committed
Update module.wurst
1 parent 820dc21 commit 5b64eab

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

de.peeeq.wurstscript/testscripts/realbugs/module.wurst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ package Entity
195195
function setTarget( vec3 tpos, real speed )
196196
var t = pos.distanceTo2d(tpos) / speed
197197
let tangle = pos.angleTo2d(tpos)
198-
let e = getTerrainZ(tpos.x,tpos.y)
198+
let e = getTerrainZ2(tpos.x,tpos.y)
199199

200200
if t < 1.
201201
t = 1./speed
@@ -237,7 +237,7 @@ package Entity
237237
override function setPos(vec3 tpos)
238238
pos = tpos
239239
actor.setPos(tpos.x,tpos.y)
240-
actor.setFlyHeight(tpos.z - getTerrainZ(tpos.x, tpos.y), 0)
240+
actor.setFlyHeight(tpos.z - getTerrainZ2(tpos.x, tpos.y), 0)
241241

242242
function setXY(vec3 tpos)
243243
pos = tpos
@@ -462,16 +462,16 @@ public function getTerrainZ(vec2 v) returns real
462462
return GetLocationZ( tempLoc )
463463

464464
public function vec2.withTerrainZ() returns vec3
465-
return vec3(this.x, this.y, getTerrainZ(this.x, this.y))
465+
return vec3(this.x, this.y, getTerrainZ2(this.x, this.y))
466466

467467
public function vec2.withTerrainZ(real zoffset) returns vec3
468-
return vec3(this.x, this.y, getTerrainZ(this.x, this.y) + zoffset)
468+
return vec3(this.x, this.y, getTerrainZ2(this.x, this.y) + zoffset)
469469

470470
public function vec3.withTerrainZ() returns vec3
471-
return vec3(this.x, this.y, getTerrainZ(this.x, this.y))
471+
return vec3(this.x, this.y, getTerrainZ2(this.x, this.y))
472472

473473
public function vec3.withTerrainZ(real zoffset) returns vec3
474-
return vec3(this.x, this.y, getTerrainZ(this.x, this.y) + zoffset)
474+
return vec3(this.x, this.y, getTerrainZ2(this.x, this.y) + zoffset)
475475

476476
public function isTerrainDeepWater(real x, real y) returns boolean
477477
return not IsTerrainPathable(x, y, PATHING_TYPE_FLOATABILITY) and IsTerrainPathable(x, y, PATHING_TYPE_WALKABILITY)

0 commit comments

Comments
 (0)