Skip to content

Commit

Permalink
TGS Test Merge (#6133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevinz authored and Kevinz committed Feb 2, 2024
2 parents 9009283 + fe59279 commit 379d464
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions code/controllers/subsystem/mapping/_mapping.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ SUBSYSTEM_DEF(mapping)
// this is an acceptable lazy lookup but we need to standardize what this means / look at how this is generated.
var/list/areas_in_z = list()

//! if you are seeing this, someone merged a testmerge only PR. shame on them.
/// reservation to avoid 515 bug
var/datum/turf_reservation/awful_515_hack

/datum/controller/subsystem/mapping/Initialize(timeofday)
// load data
// todo: refactor
Expand Down Expand Up @@ -46,6 +50,10 @@ SUBSYSTEM_DEF(mapping)
// todo: refactor
repopulate_sorted_areas()

//! if you are seeing this, someone merged a testmerge only PR. shame on them.
/// allocate a reservation to avoid a 515 bug
awful_515_hack = request_block_reservation(1, 1)

return ..()

//
Expand Down
10 changes: 9 additions & 1 deletion code/modules/mob/new_player/login.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@
mind.active = 1
mind.current = src

loc = null
//! if you are seeing this, someone merged a testmerge only PR. shame on them.
if(!isnull(SSmapping.awful_515_hack))
var/datum/turf_reservation/awful_ass_hack = SSmapping.awful_515_hack
var/list/target_coords = awful_ass_hack.bottom_left_coords
if(length(target_coords) == 3)
loc = locate(target_coords[1], target_coords[2], target_coords[3])
else
loc = null

GLOB.player_list |= src

new_player_panel()
Expand Down

0 comments on commit 379d464

Please sign in to comment.