Skip to content

Commit

Permalink
fix: has_storage_orders (#923)
Browse files Browse the repository at this point in the history
Fix the has_storage_orders having swapped Venus and Ceres checks.
  • Loading branch information
UberWaffe authored Jul 29, 2023
1 parent a4ec502 commit 3f137a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/window/city.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,10 @@ static int has_storage_orders(building_type type)
type == BUILDING_HEDGE_GATE_DARK ||
type == BUILDING_HEDGE_GATE_LIGHT ||
type == BUILDING_PALISADE_GATE ||
(type == BUILDING_SMALL_TEMPLE_CERES && building_monument_gt_module_is_active(VENUS_MODULE_1_DISTRIBUTE_WINE)) ||
(type == BUILDING_LARGE_TEMPLE_CERES && building_monument_gt_module_is_active(VENUS_MODULE_1_DISTRIBUTE_WINE)) ||
(type == BUILDING_SMALL_TEMPLE_VENUS && building_monument_gt_module_is_active(CERES_MODULE_2_DISTRIBUTE_FOOD)) ||
(type == BUILDING_LARGE_TEMPLE_VENUS && building_monument_gt_module_is_active(CERES_MODULE_2_DISTRIBUTE_FOOD));
(type == BUILDING_SMALL_TEMPLE_CERES && building_monument_gt_module_is_active(CERES_MODULE_2_DISTRIBUTE_FOOD)) ||
(type == BUILDING_LARGE_TEMPLE_CERES && building_monument_gt_module_is_active(CERES_MODULE_2_DISTRIBUTE_FOOD)) ||
(type == BUILDING_SMALL_TEMPLE_VENUS && building_monument_gt_module_is_active(VENUS_MODULE_1_DISTRIBUTE_WINE)) ||
(type == BUILDING_LARGE_TEMPLE_VENUS && building_monument_gt_module_is_active(VENUS_MODULE_1_DISTRIBUTE_WINE));
}

static void cycle_legion(void)
Expand Down

0 comments on commit 3f137a5

Please sign in to comment.