Merge pull request #4422 from Tastyfish/runtimes-fix

Fixes a few runtimes
This commit is contained in:
TheDZD
2016-05-12 20:52:59 -04:00
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -50,7 +50,8 @@
T.client.screen -= button
qdel(button)
button = null
T.actions.Remove(src)
if(T.actions)
T.actions.Remove(src)
T.update_action_buttons()
owner = null
return
@@ -31,7 +31,7 @@ Bonus
switch(A.stage)
if(2)
if(M.reagents.get_reagent_amount("oculine")<10)
M.reagents.add_reagent("oculine"=10)
M.reagents.add_reagent("oculine", 10)
to_chat(M, "<span class='notice'>Your hearing feels clearer and crisp.</span>")
if(3)
if(M.reagents.get_reagent_amount("antihol") < 10 && M.reagents.get_reagent_amount("oculine") < 10 )
@@ -520,7 +520,7 @@ var/global/list/default_medbay_channels = list(
// what the range is in which mobs will hear the radio
// returns: -1 if can't receive, range otherwise
if (wires.IsIndexCut(WIRE_RECEIVE))
if (!wires || wires.IsIndexCut(WIRE_RECEIVE))
return -1
if(!listening)
return -1