Skip to content

Commit

Permalink
citytools.c, vision.h: Bug Fix. struct->walls is not a bool, but an int.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexxie9952 committed Feb 5, 2021
1 parent ecf92e6 commit 42b4db6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion freeciv/freeciv/common/vision.h
Expand Up @@ -118,7 +118,7 @@ struct vision_site {
citizens size; /* city size (0 <= size <= MAX_CITY_SIZE) */

bool occupied;
bool walls;
int walls;
bool happy;
bool unhappy;
int style;
Expand Down
2 changes: 1 addition & 1 deletion freeciv/freeciv/server/citytools.c
Expand Up @@ -2615,7 +2615,7 @@ bool update_dumb_city(struct player *pplayer, struct city *pcity)
/* pcity->client.occupied isn't used at the server, so we go straight to the
* unit list to check the occupied status. */
bool occupied = (unit_list_size(pcenter->units) > 0);
bool walls = city_got_citywalls(pcity);
int walls = city_got_citywalls(pcity);
bool happy = city_happy(pcity);
bool unhappy = city_unhappy(pcity);
int style = pcity->style;
Expand Down

0 comments on commit 42b4db6

Please sign in to comment.