mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Fix for issue #297 (return statements are dumb)
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
if (node)
|
if (node)
|
||||||
node.initialize()
|
node.initialize()
|
||||||
node.build_network()
|
node.build_network()
|
||||||
return TRUE
|
return 1
|
||||||
|
|
||||||
update_icon()
|
update_icon()
|
||||||
if(node)
|
if(node)
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ obj/machinery/atmospherics/trinary
|
|||||||
if (node3)
|
if (node3)
|
||||||
node3.initialize()
|
node3.initialize()
|
||||||
node3.build_network()
|
node3.build_network()
|
||||||
|
return 1
|
||||||
|
|
||||||
// Housekeeping and pipe network stuff below
|
// Housekeeping and pipe network stuff below
|
||||||
network_expand(datum/pipe_network/new_network, obj/machinery/atmospherics/pipe/reference)
|
network_expand(datum/pipe_network/new_network, obj/machinery/atmospherics/pipe/reference)
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ obj/machinery/atmospherics/tvalve
|
|||||||
if (node3)
|
if (node3)
|
||||||
node3.initialize()
|
node3.initialize()
|
||||||
node3.build_network()
|
node3.build_network()
|
||||||
|
return 1
|
||||||
|
|
||||||
proc/initialize_directions()
|
proc/initialize_directions()
|
||||||
switch(dir)
|
switch(dir)
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
if (node)
|
if (node)
|
||||||
node.initialize()
|
node.initialize()
|
||||||
node.build_network()
|
node.build_network()
|
||||||
return TRUE
|
return 1
|
||||||
|
|
||||||
// Housekeeping and pipe network stuff below
|
// Housekeeping and pipe network stuff below
|
||||||
network_expand(datum/pipe_network/new_network, obj/machinery/atmospherics/pipe/reference)
|
network_expand(datum/pipe_network/new_network, obj/machinery/atmospherics/pipe/reference)
|
||||||
|
|||||||
@@ -657,7 +657,7 @@ obj/machinery/atmospherics/pipe
|
|||||||
initialize(1)
|
initialize(1)
|
||||||
if(!node1&&!node2&&!node3)
|
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)"
|
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()!
|
update_icon() // Skipped in initialize()!
|
||||||
build_network()
|
build_network()
|
||||||
if (node1)
|
if (node1)
|
||||||
@@ -960,6 +960,7 @@ obj/machinery/atmospherics/pipe
|
|||||||
if (node4)
|
if (node4)
|
||||||
node4.initialize()
|
node4.initialize()
|
||||||
node4.build_network()
|
node4.build_network()
|
||||||
|
return 1
|
||||||
|
|
||||||
hide(var/i)
|
hide(var/i)
|
||||||
if(level == 1 && istype(loc, /turf/simulated))
|
if(level == 1 && istype(loc, /turf/simulated))
|
||||||
@@ -1188,6 +1189,7 @@ obj/machinery/atmospherics/pipe
|
|||||||
if(node)
|
if(node)
|
||||||
node.initialize()
|
node.initialize()
|
||||||
node.build_network()
|
node.build_network()
|
||||||
|
return 1
|
||||||
|
|
||||||
hide(var/i)
|
hide(var/i)
|
||||||
if(level == 1 && istype(loc, /turf/simulated))
|
if(level == 1 && istype(loc, /turf/simulated))
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ What are the archived variables for?
|
|||||||
var/tmp/graphics_archived = 0
|
var/tmp/graphics_archived = 0
|
||||||
var/tmp/fuel_burnt = 0
|
var/tmp/fuel_burnt = 0
|
||||||
|
|
||||||
|
var/datum/reagents/aerosols
|
||||||
|
|
||||||
//FOR THE LOVE OF GOD PLEASE USE THIS PROC
|
//FOR THE LOVE OF GOD PLEASE USE THIS PROC
|
||||||
//Call it with negative numbers to remove gases.
|
//Call it with negative numbers to remove gases.
|
||||||
|
|
||||||
@@ -90,6 +92,10 @@ What are the archived variables for?
|
|||||||
update_values()
|
update_values()
|
||||||
return
|
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
|
//tg seems to like using these a lot
|
||||||
/datum/gas_mixture/proc/return_temperature()
|
/datum/gas_mixture/proc/return_temperature()
|
||||||
return temperature
|
return temperature
|
||||||
|
|||||||
Reference in New Issue
Block a user