Skip to content

Commit

Permalink
Fix amphitheatre image when it has no workers
Browse files Browse the repository at this point in the history
  • Loading branch information
Keriew committed Mar 12, 2024
1 parent f217c74 commit e6df3a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/building/animation.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ int building_animation_offset(building *b, int image_id, int grid_offset)
if (b->type == BUILDING_ARMOURY && b->num_workers <= 0) {
return 0;
}

if (b->type == BUILDING_AMPHITHEATER && b->num_workers <= 0) {
return 0;
}

if (b->type == BUILDING_COLOSSEUM) {
map_image_set(grid_offset, building_image_get(b));
}
Expand Down
3 changes: 0 additions & 3 deletions src/widget/city_without_overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,6 @@ static void draw_hippodrome_spectators(const building *b, int x, int y, color_t

static void draw_entertainment_spectators(building *b, int x, int y, color_t color_mask)
{
if (b->type == BUILDING_AMPHITHEATER && b->num_workers > 0) {
image_draw(image_group(GROUP_BUILDING_AMPHITHEATER_SHOW), x + 36, y - 47, color_mask, draw_context.scale);
}
if (b->type == BUILDING_HIPPODROME && building_main(b)->num_workers > 0
&& city_entertainment_hippodrome_has_race()) {
draw_hippodrome_spectators(b, x, y, color_mask);
Expand Down

0 comments on commit e6df3a6

Please sign in to comment.