Clown car now cares about maximum amount of drivers (#84956)

## About The Pull Request

Closes #81806

## Changelog
🆑
fix: You can no longer fit an infinite amount of drivers into a clown
car - making spy-acquired clown cars usable!
/🆑
This commit is contained in:
SmArtKar
2024-07-15 14:49:56 +01:00
committed by GitHub
parent 2f1f909b1a
commit a75b2e9acd
+1 -1
View File
@@ -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)