mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Converts most other usages of block() to x/y/z format (#89290)
## About The Pull Request The sequel to https://github.com/tgstation/tgstation/pull/89234 > someone should do the rest at some point guess what, I'm that someone :3 ## Why It's Good For The Game Same reasoning as the previous PR: > less cluttered code is nice, and it should in theory be more optimized as we avoid the need to run min, max, and locate. ## Changelog No user-facing changes
This commit is contained in:
@@ -350,8 +350,9 @@
|
||||
|
||||
if(!no_changeturf)
|
||||
var/list/turfs = block(
|
||||
locate(bounds[MAP_MINX], bounds[MAP_MINY], bounds[MAP_MINZ]),
|
||||
locate(bounds[MAP_MAXX], bounds[MAP_MAXY], bounds[MAP_MAXZ]))
|
||||
bounds[MAP_MINX], bounds[MAP_MINY], bounds[MAP_MINZ],
|
||||
bounds[MAP_MAXX], bounds[MAP_MAXY], bounds[MAP_MAXZ]
|
||||
)
|
||||
for(var/turf/T as anything in turfs)
|
||||
//we do this after we load everything in. if we don't, we'll have weird atmos bugs regarding atmos adjacent turfs
|
||||
T.AfterChange(CHANGETURF_IGNORE_AIR)
|
||||
|
||||
Reference in New Issue
Block a user