mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Raise NoParkingSlotError instead of RuntimeError when running out of ground spawns.
This commit is contained in:
parent
946d578ffb
commit
6fd60d150e
@ -436,7 +436,9 @@ class FlightGroupSpawner:
|
||||
)
|
||||
group.units[1 + i].heading = ground_spawn[0].units[0].heading
|
||||
except IndexError as ex:
|
||||
raise RuntimeError(f"Not enough STOL slots available at {cp}") from ex
|
||||
raise NoParkingSlotError(
|
||||
f"Not enough STOL slots available at {cp}"
|
||||
) from ex
|
||||
return group
|
||||
|
||||
def dcs_start_type(self) -> DcsStartType:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user