Preserve production order identities and preflight whole placement batches
This commit is contained in:
1 parent
4ba64f7e62
commit
2a3ec924de
16 files changed
+661
-88
No files matched your search
@@ -78,6 +78,8 @@ CommandStatus CommandDispatcher::apply(World& world, TrustedClient client, const
|
||||
const auto& payload = std::get<LegacyCabinPayload>(command.payload);
|
||||
try {
|
||||
world.queue_cabin(payload.cell, payload.sawmill, payload.stonecutter);
|
||||
} catch (const ProductionCapacityError&) {
|
||||
return CommandStatus::Busy;
|
||||
} catch (const std::invalid_argument&) {
|
||||
return CommandStatus::InvalidTarget;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user