Merge pull request #6322 from Citadel-Station-13/upstream-merge-37042
[MIRROR] Fixes underlying area grabbing subtypes
This commit is contained in:
@@ -46,7 +46,12 @@
|
||||
|
||||
// The underlying old area is the area assumed to be under the shuttle's starting location
|
||||
// If it no longer/has never existed it will be created
|
||||
var/area/underlying_old_area = locate(underlying_area_type) in GLOB.sortedAreas
|
||||
var/area/underlying_old_area
|
||||
for(var/i in GLOB.sortedAreas) // Locate grabs subtypes and we want a particular type
|
||||
var/area/place = i
|
||||
if(place.type == underlying_area_type)
|
||||
underlying_old_area = place
|
||||
break
|
||||
if(!underlying_old_area)
|
||||
underlying_old_area = new underlying_area_type(null)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user