Fixes being able to sell camera mobs to CentCom (#31306)

* Fixes being able to sell camera mobs to CENTCOM

* Did it Ninja's way.
This commit is contained in:
ShizCalev
2017-10-07 20:12:53 -04:00
committed by CitadelStationBot
parent d600df9ba2
commit 92ec5c11ab
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ GLOBAL_LIST_INIT(duplicate_forbidden_vars,list("tag","area","type","loc","locs",
copiedobjs += O2.GetAllContents()
for(var/mob/M in T)
if(istype(M, /mob/camera))
if(iscameramob(M))
continue // If we need to check for more mobs, I'll add a variable
var/mob/SM = DuplicateObject(M , perfectcopy=TRUE, newloc = B, holoitem=TRUE)
copiedobjs += SM.GetAllContents()
+1 -1
View File
@@ -120,7 +120,7 @@ GLOBAL_LIST_INIT(blacklisted_cargo_types, typecacheof(list(
for(var/place in shuttle_areas)
var/area/shuttle/shuttle_area = place
for(var/atom/movable/AM in shuttle_area)
if(AM.anchored)
if(AM.anchored || iscameramob(AM))
continue
sold_atoms += export_item_and_contents(AM, contraband, emagged, dry_run = FALSE)