[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
🆑
fix: You can no longer fit an infinite amount of drivers into a clown
car - making spy-acquired clown cars usable!
/🆑

* Clown car now cares about maximum amount of drivers

---------

Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-07-16 10:48:17 +05:30
committed by GitHub
co-authored by SmArtKar
parent 267b26bfae
commit 67453ed55d
+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)