removes unreachable code

This commit is contained in:
TDSSS
2020-08-12 00:16:57 +02:00
parent 659f3160a5
commit 069512e38a
@@ -13,16 +13,3 @@
possible_destinations = "laborcamp_away"
circuit = /obj/item/circuitboard/labor_shuttle/one_way
req_access = list( )
/obj/machinery/computer/shuttle/labor/one_way/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_state/state)
if(action == "move")
var/obj/docking_port/mobile/M = SSshuttle.getShuttle("laborcamp")
if(!M)
to_chat(usr, "<span class='warning'>Cannot locate shuttle!</span>")
return 0
var/obj/docking_port/stationary/S = M.get_docked()
if(S && S.name == "laborcamp_away")
to_chat(usr, "<span class='warning'>Shuttle is already at the outpost!</span>")
return 0
..() //I know the tutorial says if(..()) should always be at the start, but that won't work here
//and this doesn't move the shuttle, so any exploit is getting caught in the ..()