mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
Splits placeontop proc (#79702)
## About The Pull Request I find the proc hard to read honestly. There's no reason we can't split this into two functions - the secondary functionality is used only once, in reader.dmm. ## Why It's Good For The Game Code improvement Glorious snake case ## Changelog N/A nothing player facing --------- Co-authored-by: san7890 <34697715+san7890@users.noreply.github.com>
This commit is contained in:
@@ -153,11 +153,11 @@
|
||||
if(1 to 9)
|
||||
var/turf/here = get_turf(src)
|
||||
for(var/turf/closed/T in range(2, src))
|
||||
here.PlaceOnTop(T.type)
|
||||
here.place_on_top(T.type)
|
||||
qdel(airlock)
|
||||
qdel(src)
|
||||
return
|
||||
here.PlaceOnTop(/turf/closed/wall)
|
||||
here.place_on_top(/turf/closed/wall)
|
||||
qdel(airlock)
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
@@ -950,7 +950,7 @@ GLOBAL_LIST_EMPTY(map_model_default)
|
||||
|
||||
// Note: we make the assertion that the last path WILL be a turf. if it isn't, this will fail.
|
||||
if(placeOnTop)
|
||||
instance = crds.PlaceOnTop(null, members[index], CHANGETURF_DEFER_CHANGE | (no_changeturf ? CHANGETURF_SKIP : NONE))
|
||||
instance = crds.load_on_top(members[index], CHANGETURF_DEFER_CHANGE | (no_changeturf ? CHANGETURF_SKIP : NONE))
|
||||
else if(no_changeturf)
|
||||
instance = create_atom(members[index], crds)//first preloader pass
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user