From f8eef23e6459ffafd42b3ff213cbdaa64101c616 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 29 Sep 2020 00:18:52 +0200 Subject: [PATCH] [MIRROR] Fixes incorrect Initialize() arguments (#1029) * Fixes incorrect Initialize() arguments (#54013) * Fixes incorrect Initialize() arguments Co-authored-by: spookydonut --- code/game/objects/items/storage/lockbox.dm | 2 +- code/modules/cargo/supplypod.dm | 2 +- code/modules/hydroponics/growninedible.dm | 2 +- code/modules/power/solar.dm | 2 +- code/modules/recycling/disposal/construction.dm | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/game/objects/items/storage/lockbox.dm b/code/game/objects/items/storage/lockbox.dm index 647299ae9d6..68b7b55df44 100644 --- a/code/game/objects/items/storage/lockbox.dm +++ b/code/game/objects/items/storage/lockbox.dm @@ -213,7 +213,7 @@ var/datum/bank_account/buyer_account var/privacy_lock = TRUE -/obj/item/storage/lockbox/order/Initialize(datum/bank_account/_buyer_account) +/obj/item/storage/lockbox/order/Initialize(mapload, datum/bank_account/_buyer_account) . = ..() buyer_account = _buyer_account diff --git a/code/modules/cargo/supplypod.dm b/code/modules/cargo/supplypod.dm index c66bd7aace3..921ecb59adc 100644 --- a/code/modules/cargo/supplypod.dm +++ b/code/modules/cargo/supplypod.dm @@ -81,7 +81,7 @@ delays = list(POD_TRANSIT = 20, POD_FALLING = 4, POD_OPENING = 30, POD_LEAVING = 30) resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF -/obj/structure/closet/supplypod/Initialize(var/customStyle = FALSE) +/obj/structure/closet/supplypod/Initialize(mapload, customStyle = FALSE) . = ..() if (!loc) var/shippingLane = GLOB.areas_by_type[/area/centcom/supplypod/supplypod_temp_holding] //temporary holder for supplypods mid-transit diff --git a/code/modules/hydroponics/growninedible.dm b/code/modules/hydroponics/growninedible.dm index 565f3ac6d1a..c74fea764a6 100644 --- a/code/modules/hydroponics/growninedible.dm +++ b/code/modules/hydroponics/growninedible.dm @@ -8,7 +8,7 @@ resistance_flags = FLAMMABLE var/obj/item/seeds/seed = null // type path, gets converted to item on New(). It's safe to assume it's always a seed item. -/obj/item/grown/Initialize(newloc, obj/item/seeds/new_seed) +/obj/item/grown/Initialize(mapload, newloc, obj/item/seeds/new_seed) . = ..() create_reagents(100) diff --git a/code/modules/power/solar.dm b/code/modules/power/solar.dm index d7f5325c642..685d2910514 100644 --- a/code/modules/power/solar.dm +++ b/code/modules/power/solar.dm @@ -191,7 +191,7 @@ control.gen += sgen //Bit of a hack but this whole type is a hack -/obj/machinery/power/solar/fake/Initialize(turf/loc, obj/item/solar_assembly/S) +/obj/machinery/power/solar/fake/Initialize(mapload, turf/loc, obj/item/solar_assembly/S) . = ..() UnregisterSignal(SSsun, COMSIG_SUN_MOVED) diff --git a/code/modules/recycling/disposal/construction.dm b/code/modules/recycling/disposal/construction.dm index 334988b9b23..2fd2fe26697 100644 --- a/code/modules/recycling/disposal/construction.dm +++ b/code/modules/recycling/disposal/construction.dm @@ -19,7 +19,7 @@ return density = anchorvalue ? initial(pipe_type.density) : FALSE -/obj/structure/disposalconstruct/Initialize(loc, _pipe_type, _dir = SOUTH, flip = FALSE, obj/make_from) +/obj/structure/disposalconstruct/Initialize(mapload, loc, _pipe_type, _dir = SOUTH, flip = FALSE, obj/make_from) . = ..() if(make_from) pipe_type = make_from.type