Commit f818715 1 parent c1a6558 commit f818715 Copy full SHA for f818715
File tree 5 files changed +6
-5
lines changed
5 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1082,6 +1082,7 @@ void building_impl::static_params::load(archive arch) {
1082
1082
check_water_access = arch.r_bool (" check_water_access" );
1083
1083
info_title_id = arch.r_vec2i (" info_title_id" );
1084
1084
updates.canals = arch.r_bool (" update_canals" );
1085
+ updates.roads = arch.r_bool (" update_roads" );
1085
1086
1086
1087
city_labor_set_category (type, labor_category);
1087
1088
Original file line number Diff line number Diff line change @@ -539,6 +539,7 @@ class building_impl {
539
539
textid info_title_id;
540
540
struct {
541
541
bool canals;
542
+ bool roads;
542
543
} updates;
543
544
544
545
void load (archive arch);
Original file line number Diff line number Diff line change @@ -176,12 +176,11 @@ void building_update_state(void) {
176
176
if (b->state == BUILDING_STATE_UNDO || b->state == BUILDING_STATE_DELETED_BY_PLAYER) {
177
177
const auto ¶ms = b->dcast ()->params ();
178
178
canals_recalc |= params.updates .canals ;
179
+ // roads_recalc |= params.updates.roads;
179
180
180
181
if (b->type == BUILDING_MUD_TOWER || b->type == BUILDING_MUD_GATEHOUSE) {
181
182
walls_recalc = true ;
182
- roads_recalc = true ;
183
- } else if (b->type == BUILDING_GRANARY) {
184
- roads_recalc = true ;
183
+ // roads_recalc = true;
185
184
} else if (b->type == BUILDING_FERRY) {
186
185
water_routes_recalc = true ;
187
186
}
Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ building_farm_figs = {
517
517
labor_category : LABOR_CATEGORY_FOOD_PRODUCTION ,
518
518
}
519
519
520
- building_granary = {
520
+ building building_granary = {
521
521
animations : {
522
522
preview : { pack :PACK_GENERAL , id :99 } ,
523
523
base : { pack :PACK_GENERAL , id :99 } ,
@@ -530,6 +530,7 @@ building_granary = {
530
530
info_text_id : 98 ,
531
531
info_help_id : 3 ,
532
532
building_size : 4 ,
533
+ update_roads : true ,
533
534
}
534
535
535
536
building_shrine_osiris = {
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ var cart_offsets = []
18
18
var sled_offsets = [ ]
19
19
var localization = [ ]
20
20
// buildings
21
- var building_granary = { }
22
21
var building_academy = { }
23
22
var building_firehouse = { }
24
23
var building_police_station = { }
You can’t perform that action at this time.
0 commit comments