Skip to content

Commit 9facdc5

Browse files
committed
fixed update progress for farms
1 parent efd20f9 commit 9facdc5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/building/industry.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ void building_industry_update_farms(void) {
171171
}
172172

173173
building_farm *farm = b.dcast_farm();
174-
if (farm) {
174+
if (!farm) {
175175
return;
176176
}
177177

src/scripts/ui.js

+1
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,7 @@ info_window_recruiter = {
11151115
info_window_farm = {
11161116
ui : __baseui(building_info_window, {
11171117
resource : { type : "resource_icon", pos:[10, 10] },
1118+
progress_desc : { type : "text", pos: [32, 44], font: FONT_NORMAL_BLACK_ON_LIGHT },
11181119
workers_desc : { type : "text", pos: [70, 116], font: FONT_NORMAL_BLACK_ON_DARK, multiline:true, wrap:px(23) },
11191120
farm_desc : { type : "text", pos: [32, 64], font: FONT_NORMAL_BLACK_ON_LIGHT, wrap:px(27), multiline:true },
11201121
farm_state : { type : "text", pos: [32, 186], font: FONT_NORMAL_BLACK_ON_LIGHT, wrap:px(27), multiline:true },

0 commit comments

Comments
 (0)