We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb7b2c5 commit ba201c9Copy full SHA for ba201c9
src/city/sentiment.cpp
@@ -288,7 +288,7 @@ void city_sentiment_update() {
288
return;
289
}
290
291
- if (!b.house_population) {
+ if (b.house_population <= 0) {
292
b.sentiment.house_happiness = 10 + default_sentiment;
293
294
@@ -361,7 +361,7 @@ void city_sentiment_update() {
361
int total_sentiment = 0;
362
int total_houses = 0;
363
buildings_valid_do([&total_houses, &total_sentiment] (building &b) {
364
- if (b.house_size && b.house_population) {
+ if (b.house_size && b.house_population > 0) {
365
total_houses++;
366
total_sentiment += b.sentiment.house_happiness;
367
0 commit comments