Commit c3174aa 1 parent ba201c9 commit c3174aa Copy full SHA for c3174aa
File tree 6 files changed +6
-6
lines changed
6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ void figure_governor::figure_action() {
60
60
sound_key figure_governor::phrase_key () const {
61
61
int nobles_in_city = 0 ;
62
62
buildings_valid_do ([&] (building &b) {
63
- if (!b.house_size || ! b.house_population || b.subtype .house_level < HOUSE_COMMON_MANOR) {
63
+ if (!b.house_size || b.house_population <= 0 || b.subtype .house_level < HOUSE_COMMON_MANOR) {
64
64
return ;
65
65
}
66
66
nobles_in_city += b.house_population ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ sound_key figure_juggler::phrase_key() const {
33
33
34
34
int houses_in_disease = 0 ;
35
35
buildings_valid_do ([&] (building &b) {
36
- if (!b.house_size || ! b.house_population ) {
36
+ if (!b.house_size || b.house_population <= 0 ) {
37
37
return ;
38
38
}
39
39
houses_in_disease = (b.disease_days > 0 ) ? 1 : 0 ;
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ sound_key figure_labor_seeker::phrase_key() const {
62
62
63
63
int houses_in_disease = 0 ;
64
64
buildings_valid_do ([&] (building &b) {
65
- if (!b.house_size || ! b.house_population ) {
65
+ if (!b.house_size || b.house_population <= 0 ) {
66
66
return ;
67
67
}
68
68
houses_in_disease = (b.disease_days > 0 ) ? 1 : 0 ;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ void figure_magistrate::figure_before_action() {
41
41
sound_key figure_magistrate::phrase_key () const {
42
42
int houses_in_disease = 0 ;
43
43
buildings_valid_do ([&] (building &b) {
44
- if (!b.house_size || ! b.house_population ) {
44
+ if (!b.house_size || b.house_population <= 0 ) {
45
45
return ;
46
46
}
47
47
houses_in_disease = (b.disease_days > 0 ) ? 1 : 0 ;
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ sound_key figure_priest::phrase_key() const {
76
76
77
77
int houses_in_disease = 0 ;
78
78
buildings_valid_do ([&] (building &b) {
79
- if (!b.house_size || ! b.house_population ) {
79
+ if (!b.house_size || b.house_population <= 0 ) {
80
80
return ;
81
81
}
82
82
houses_in_disease = (b.disease_days > 0 ) ? 1 : 0 ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ sound_key figure_senet_player::phrase_key() const {
29
29
30
30
int houses_in_disease = 0 ;
31
31
buildings_valid_do ([&] (building &b) {
32
- if (!b.house_size || ! b.house_population ) {
32
+ if (!b.house_size || b.house_population <= 0 ) {
33
33
return ;
34
34
}
35
35
houses_in_disease = (b.disease_days > 0 ) ? 1 : 0 ;
You can’t perform that action at this time.
0 commit comments