mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Resolve get teleport turf proc not calculating from error correctly (#74537)
## About The Pull Request The helper proc calculates a list of turfs from the expected destination and the given error ranges, however when calculating width/height for grabbing a list of turfs to pull from it incorrectly passed in those two vars as zero based instead of one based, and so when the define went to calculate that list of turfs it was actually ending up grabbing a 2x2 list where the bottom left turned into the top right. ## Why It's Good For The Game Syndicate teleporter is now only randomized in range ## Changelog 🆑 fix: Syndicate teleporter is no longer secretly nerfed due to internal code mishaps. (-1 range) fix: Syndicate teleporter now gibs you where it should correctly; resulting in it being much more dangerous to use /🆑
This commit is contained in:
@@ -84,8 +84,8 @@ Turf and target are separate in case you want to teleport some distance from a t
|
||||
var/turf/center = locate((destination.x + xoffset), (destination.y + yoffset), location.z)//So now, find the new center.
|
||||
|
||||
//Now to find a box from center location and make that our destination.
|
||||
var/width = b2xerror - b1xerror
|
||||
var/height = b2yerror - b1yerror
|
||||
var/width = (b2xerror - b1xerror) + 1
|
||||
var/height = (b2yerror - b1yerror) + 1
|
||||
for(var/turf/current_turf as anything in CORNER_BLOCK_OFFSET(center, width, height, b1xerror, b1yerror))
|
||||
if(density_check && current_turf.density)
|
||||
continue//If density was specified.
|
||||
|
||||
Reference in New Issue
Block a user