Skip to content

Commit

Permalink
Backporting CleverRaven#49957
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg committed Aug 12, 2021
1 parent 9550b7d commit 756c5ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mission_start.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,7 @@ void mission_start::create_hidden_lab_console( mission *miss )
// Pick a hidden lab entrance.
tripoint_abs_omt loc = player_character.global_omt_location();
loc.z() = -1;
tripoint_abs_omt place =
mission_util::target_om_ter_random( "basement_hidden_lab_stairs", -1, miss, false, 0, loc );
tripoint_abs_omt place = overmap_buffer.find_closest( loc, "basement_hidden_lab_stairs", 0, false );
place.z() = -2; // then go down 1 z-level to place consoles.

create_lab_consoles( miss, place, "lab", 3, _( "Workstation" ),
Expand Down

0 comments on commit 756c5ba

Please sign in to comment.