mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
Batch pr 2 (#12558)
* https://github.com/tgstation/tgstation/pull/65766 * Update ert.dm * https://github.com/tgstation/tgstation/pull/65771 * https://github.com/tgstation/tgstation/pull/65868 * Update space_station_13_areas.dm * https://github.com/tgstation/tgstation/pull/65894 * https://github.com/tgstation/tgstation/pull/65903 * https://github.com/tgstation/tgstation/pull/65908 * https://github.com/tgstation/tgstation/pull/65914 * https://github.com/tgstation/tgstation/pull/65926 * https://github.com/tgstation/tgstation/pull/65930 * https://github.com/tgstation/tgstation/pull/65915 * maps * icons
This commit is contained in:
@@ -349,8 +349,13 @@ SUBSYSTEM_DEF(spatial_grid)
|
||||
///find the spatial map cell that target belongs to, then add target's important_recusive_contents to it.
|
||||
///make sure to provide the turf new_target is "in"
|
||||
/datum/controller/subsystem/spatial_grid/proc/enter_cell(atom/movable/new_target, turf/target_turf)
|
||||
if(!target_turf || !new_target?.important_recursive_contents)
|
||||
CRASH("/datum/controller/subsystem/spatial_grid/proc/enter_cell() was given null arguments or a new_target without important_recursive_contents!")
|
||||
if(!initialized)
|
||||
return
|
||||
if(QDELETED(new_target))
|
||||
CRASH("qdeleted or null target trying to enter the spatial grid!")
|
||||
|
||||
if(!target_turf || !new_target.important_recursive_contents)
|
||||
CRASH("null turf loc or a new_target without important_recursive_contents trying to enter the spatial grid!")
|
||||
|
||||
var/x_index = ROUND_UP(target_turf.x / SPATIAL_GRID_CELLSIZE)
|
||||
var/y_index = ROUND_UP(target_turf.y / SPATIAL_GRID_CELLSIZE)
|
||||
|
||||
Reference in New Issue
Block a user