Removes all locate() calls in block() (#25772)

* Removes all `locate()` calls in `block()`

* Maybe actually push fixes

* Revert bad merge master

* Forgot this one

* Maybe actually push fixes

---------

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
DGamerL
2024-06-28 20:33:38 +00:00
committed by GitHub
parent 02759bcb31
commit efd6f2dfa6
18 changed files with 33 additions and 34 deletions
+4 -4
View File
@@ -500,13 +500,13 @@
var/list/L2 = list()
switch(S1.dir)
if(NORTH)
L2 = block(locate(S1.x-9, S1.y+36, S1.z), locate(S1.x+9, 255, S1.z))
L2 = block(S1.x-9, S1.y+36, S1.z, S1.x+9, 255, S1.z)
if(SOUTH)
L2 = block(locate(S1.x-9, 1, S1.z), locate(S1.x+9, S1.y-36, S1.z))
L2 = block(S1.x-9, 1, S1.z, S1.x+9, S1.y-36, S1.z)
if(EAST)
L2 = block(locate(S1.x+36, S1.y-9, S1.z), locate(255, S1.y+9, S1.z))
L2 = block(S1.x+36, S1.y-9, S1.z, 255, S1.y+9, S1.z)
if(WEST)
L2 = block(locate(1, S1.y-9, S1.z), locate(S1.x-36, S1.y+9, S1.z))
L2 = block(1, S1.y-9, S1.z, S1.x-36, S1.y+9, S1.z)
mobile_port.shuttle_smash(L2, S1)
mobile_port.roadkill(L0, L1, S1.dir)