From 50d0f65638c54a02fa3ea632baf50fef74f14771 Mon Sep 17 00:00:00 2001 From: forest2001 Date: Sat, 1 Jun 2024 15:16:24 +0100 Subject: [PATCH] generalise --- code/game/camera_manager/camera_manager.dm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/code/game/camera_manager/camera_manager.dm b/code/game/camera_manager/camera_manager.dm index 0a5f31e9b1f9..9f111b0f8ec6 100644 --- a/code/game/camera_manager/camera_manager.dm +++ b/code/game/camera_manager/camera_manager.dm @@ -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.