Minor Bug / Exploit Fixes

Fixes #4786
- Chicks that age up to chicken will retain their ghost (if any) into
their adult stage.

Fixes #4836
- Intercoms now properly check their buildstage when removing cables and
electronics to avoid being used to infinitely generate these objects
- Fire alarms and air alarms now also have this exploit-protection. APCs
already had a form of this protection.
This commit is contained in:
FalseIncarnate
2016-07-02 23:32:18 -04:00
parent 43d99007f6
commit daf777979f
4 changed files with 12 additions and 2 deletions
@@ -194,7 +194,9 @@
if(.)
amount_grown += rand(1,2)
if(amount_grown >= 100)
new /mob/living/simple_animal/chicken(src.loc)
var/mob/living/simple_animal/chicken/C = new /mob/living/simple_animal/chicken(src.loc)
if(key)
C.key = key
qdel(src)
var/const/MAX_CHICKENS = 50