From be992ab9a7fa5e4b2514f5b9b51250c82aee346e Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Wed, 14 May 2014 17:12:03 +0930 Subject: [PATCH] Fixes drone fabricator runtime. --- .../living/silicon/robot/drone/drone_manufacturer.dm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm b/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm index 5788bfa121..7ffc125506 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm @@ -28,7 +28,10 @@ /obj/machinery/drone_fabricator/process() - if(stat & NOPOWER || !produce_drones) + if(ticker.current_state < GAME_STATE_PLAYING) + return + + if((stat & NOPOWER || !produce_drones) && icon_state != "drone_fab_nopower") icon_state = "drone_fab_nopower" return @@ -83,6 +86,11 @@ set name = "Join As Drone" set desc = "If there is a powered, enabled fabricator in the game world with a prepared chassis, join as a maintenance drone." + + if(ticker.current_state < GAME_STATE_PLAYING) + src << "\red The game hasn't started yet!" + return + if(!(config.allow_drone_spawn)) src << "\red That verb is not currently permitted." return