Skip to content

Feature EF_CITY_RACES#22

Open
janklose wants to merge 1 commit intotompickering:masterfrom
janklose:feature-city-races
Open

Feature EF_CITY_RACES#22
janklose wants to merge 1 commit intotompickering:masterfrom
janklose:feature-city-races

Conversation

@janklose
Copy link
Copy Markdown
Contributor

Add feature to show the races of city inhabitants and create effects for planet takeovers and rebellions. Impacts game save files.

Add feature to show the races of city inhabitants and create effects for planet takeovers and rebellions. Impacts game save files.
if ((FEATURE(EF_CITY_RACES)) && (n_cities > 0)) {
switch (p->get_majority_race()) {
case RACE_Human:
snprintf(race, 20, "Human"); break;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to use sizeof(race) here, instead of 20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants