From 67453ed55df549c63eb4e7f836fd82aa4824493f Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 16 Jul 2024 07:18:17 +0200 Subject: [PATCH] [MIRROR] Clown car now cares about maximum amount of drivers (#28870) * Clown car now cares about maximum amount of drivers (#84956) ## About The Pull Request Closes #81806 ## Changelog :cl: fix: You can no longer fit an infinite amount of drivers into a clown car - making spy-acquired clown cars usable! /:cl: * Clown car now cares about maximum amount of drivers --------- Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com> --- code/modules/vehicles/cars/clowncar.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/vehicles/cars/clowncar.dm b/code/modules/vehicles/cars/clowncar.dm index 30e01b3219e..2cd85f786fc 100644 --- a/code/modules/vehicles/cars/clowncar.dm +++ b/code/modules/vehicles/cars/clowncar.dm @@ -49,7 +49,7 @@ initialize_controller_action_type(/datum/action/vehicle/sealed/thank, VEHICLE_CONTROL_KIDNAPPED) /obj/vehicle/sealed/car/clowncar/auto_assign_occupant_flags(mob/M) - if(ishuman(M)) + if(ishuman(M) && driver_amount() < max_drivers) var/mob/living/carbon/human/H = M if(is_clown_job(H.mind?.assigned_role) || !enforce_clown_role) //Ensures only clowns can drive the car. (Including more at once) add_control_flags(H, VEHICLE_CONTROL_DRIVE)