Corrects return values for the Topic procs of several computers and some other machines as well.

This commit is contained in:
mwerezak
2015-02-25 21:32:35 -05:00
parent a910986ed4
commit 6d15809768
40 changed files with 43 additions and 42 deletions

View File

@@ -204,7 +204,7 @@
/obj/machinery/atmospherics/binary/passive_gate/Topic(href,href_list)
if(..()) return
if(..()) return 1
if(href_list["toggle_valve"])
unlocked = !unlocked

View File

@@ -190,7 +190,7 @@ Thus, the two variables affect pump operation are set in New():
return
/obj/machinery/atmospherics/binary/pump/Topic(href,href_list)
if(..()) return
if(..()) return 1
if(href_list["power"])
use_power = !use_power

View File

@@ -155,7 +155,7 @@
return null
/obj/machinery/atmospherics/omni/filter/Topic(href, href_list)
if(..()) return
if(..()) return 1
switch(href_list["command"])
if("power")
if(!configuring)

View File

@@ -172,7 +172,7 @@
return data
/obj/machinery/atmospherics/omni/mixer/Topic(href, href_list)
if(..()) return
if(..()) return 1
switch(href_list["command"])
if("power")

View File

@@ -199,7 +199,7 @@
/obj/machinery/atmospherics/trinary/filter/Topic(href, href_list) // -- TLE
if(..())
return
return 1
usr.set_machine(src)
src.add_fingerprint(usr)
if(href_list["filterset"])

View File

@@ -156,7 +156,7 @@
return
/obj/machinery/atmospherics/trinary/mixer/Topic(href,href_list)
if(..()) return
if(..()) return 1
if(href_list["power"])
use_power = !use_power
if(href_list["set_press"])

View File

@@ -93,6 +93,8 @@
ui.set_auto_update(1)
/obj/machinery/atmospherics/unary/freezer/Topic(href, href_list)
if(..())
return 1
if(href_list["toggleStatus"])
use_power = !use_power
update_icon()
@@ -107,7 +109,6 @@
set_power_level(new_setting)
add_fingerprint(usr)
return 1
/obj/machinery/atmospherics/unary/freezer/process()
..()

View File

@@ -113,6 +113,8 @@
ui.set_auto_update(1)
/obj/machinery/atmospherics/unary/heater/Topic(href, href_list)
if(..())
return 1
if(href_list["toggleStatus"])
use_power = !use_power
update_icon()
@@ -127,7 +129,6 @@
set_power_level(new_setting)
add_fingerprint(usr)
return 1
//upgrading parts
/obj/machinery/atmospherics/unary/heater/RefreshParts()