Skip to content

Commit

Permalink
revert mass screenshot boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
fira committed Dec 8, 2023
1 parent b3a089b commit 478f1ad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
11 changes: 9 additions & 2 deletions code/modules/admin/verbs/debug.dm
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,15 @@
var/cur_x = half_chunk_size
var/cur_y = half_chunk_size
var/cur_z = mob.z
var/width = world.maxx - half_chunk_size + 2
var/height = world.maxy - half_chunk_size + 2
var/width
var/height
if(istype(SSmapping.z_list[cur_z], /datum/space_level))
var/datum/space_level/cur_level = SSmapping.z_list[cur_z]
width = cur_level.x_bounds - half_chunk_size + 2
height = cur_level.y_bounds - half_chunk_size + 2
else
width = world.maxx - half_chunk_size + 2
height = world.maxy - half_chunk_size + 2
var/width_inside = width - 1
var/height_inside = height - 1

Expand Down
1 change: 0 additions & 1 deletion code/modules/mapping/map_template.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
var/loaded = 0 // Times loaded this round
var/datum/parsed_map/cached_map
var/keep_cached_map = FALSE
var/station_id = null // used to override the root id when generating

///Default area associated with the map template
var/default_area
Expand Down
8 changes: 4 additions & 4 deletions code/modules/mapping/space_management/space_level.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
var/list/traits
var/z_value = 1 //actual z placement
var/linkage = SELFLOOPING
var/xi
var/yi
var/x_bounds
var/y_bounds

/datum/space_level/New(new_z, new_name, list/new_traits = list())
z_value = new_z
Expand All @@ -17,6 +17,6 @@
SSmapping.z_trait_levels[trait] += list(new_z)
else // in case a single trait is passed in
SSmapping.z_trait_levels[new_traits] += list(new_z)


//set_linkage(new_traits[ZTRAIT_LINKAGE])
x_bounds = world.maxx
y_bounds = world.maxy

0 comments on commit 478f1ad

Please sign in to comment.