mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Fix for issue #297 (return statements are dumb)
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
if (node)
|
||||
node.initialize()
|
||||
node.build_network()
|
||||
return TRUE
|
||||
return 1
|
||||
|
||||
update_icon()
|
||||
if(node)
|
||||
|
||||
@@ -52,6 +52,7 @@ obj/machinery/atmospherics/trinary
|
||||
if (node3)
|
||||
node3.initialize()
|
||||
node3.build_network()
|
||||
return 1
|
||||
|
||||
// Housekeeping and pipe network stuff below
|
||||
network_expand(datum/pipe_network/new_network, obj/machinery/atmospherics/pipe/reference)
|
||||
|
||||
@@ -47,6 +47,7 @@ obj/machinery/atmospherics/tvalve
|
||||
if (node3)
|
||||
node3.initialize()
|
||||
node3.build_network()
|
||||
return 1
|
||||
|
||||
proc/initialize_directions()
|
||||
switch(dir)
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
if (node)
|
||||
node.initialize()
|
||||
node.build_network()
|
||||
return TRUE
|
||||
return 1
|
||||
|
||||
// Housekeeping and pipe network stuff below
|
||||
network_expand(datum/pipe_network/new_network, obj/machinery/atmospherics/pipe/reference)
|
||||
|
||||
@@ -657,7 +657,7 @@ obj/machinery/atmospherics/pipe
|
||||
initialize(1)
|
||||
if(!node1&&!node2&&!node3)
|
||||
usr << "\red There's nothing to connect this manifold to! (with how the pipe code works, at least one end needs to be connected to something, otherwise the game deletes the segment)"
|
||||
return 1
|
||||
return 0
|
||||
update_icon() // Skipped in initialize()!
|
||||
build_network()
|
||||
if (node1)
|
||||
@@ -960,6 +960,7 @@ obj/machinery/atmospherics/pipe
|
||||
if (node4)
|
||||
node4.initialize()
|
||||
node4.build_network()
|
||||
return 1
|
||||
|
||||
hide(var/i)
|
||||
if(level == 1 && istype(loc, /turf/simulated))
|
||||
@@ -1188,6 +1189,7 @@ obj/machinery/atmospherics/pipe
|
||||
if(node)
|
||||
node.initialize()
|
||||
node.build_network()
|
||||
return 1
|
||||
|
||||
hide(var/i)
|
||||
if(level == 1 && istype(loc, /turf/simulated))
|
||||
|
||||
@@ -66,6 +66,8 @@ What are the archived variables for?
|
||||
var/tmp/graphics_archived = 0
|
||||
var/tmp/fuel_burnt = 0
|
||||
|
||||
var/datum/reagents/aerosols
|
||||
|
||||
//FOR THE LOVE OF GOD PLEASE USE THIS PROC
|
||||
//Call it with negative numbers to remove gases.
|
||||
|
||||
@@ -90,6 +92,10 @@ What are the archived variables for?
|
||||
update_values()
|
||||
return
|
||||
|
||||
/datum/gas_mixture/proc/create_reagents(var/max_vol)
|
||||
aerosols = new/datum/reagents(max_vol)
|
||||
aerosols.my_atom = src
|
||||
|
||||
//tg seems to like using these a lot
|
||||
/datum/gas_mixture/proc/return_temperature()
|
||||
return temperature
|
||||
|
||||
Reference in New Issue
Block a user