Skip to content

Commit

Permalink
generalise
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Jun 1, 2024
1 parent 11f250d commit 50d0f65
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions code/game/camera_manager/camera_manager.dm
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,9 @@
var/cam_location = current
if(isliving(current.loc) || isVehicle(current.loc))
cam_location = current.loc
else if(istype(current.loc, /obj/item/clothing/head/helmet/marine))
var/obj/item/clothing/head/helmet/marine/helmet = current.loc
cam_location = helmet.loc
else if(istype(current.loc, /obj/item/clothing/under/rank/synthetic/joe))
var/obj/item/clothing/under/rank/synthetic/joe/uniform = current.loc
cam_location = uniform.loc
else if(istype(current.loc, /obj/item/clothing))
var/obj/item/clothing/clothing = current.loc
cam_location = clothing.loc

// If we're not forcing an update for some reason and the cameras are in the same location,
// we don't need to update anything.
Expand Down

0 comments on commit 50d0f65

Please sign in to comment.