Skip to content

Commit 5ef820c

Browse files
committed
FIX: Factory editor could not slect water factories from climate selection
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11904 8aca7d54-2c30-db11-9de9-000461428c89
1 parent 773b6e0 commit 5ef820c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

simutrans/history.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
FIX: show convoi (and line) name when permanent tooltips are enabled for convois
6767
FIX: not connection to tunnels, bridges and elevated ways when extending city streets
6868
FIX: Overcrowded stops can cause unhappy return passengers in unconnected networks
69+
FIX: Factory editor could not slect water factories from climate selection
6970

7071

7172
Release of 124.3.1 (r11671 on 5-Apr-2025):

src/simutrans/gui/factory_edit.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ void factory_edit_frame_t::fill_list()
174174
// DistributionWeight=0 is obsoleted item, only for backward compatibility
175175

176176
if( (!use_timeline || (!desc->get_building()->is_future(month_now) && (!desc->get_building()->is_retired(month_now) || allow_obsolete)))
177-
&& ( desc->get_building()->get_allowed_climate_bits() & get_climate()) ) {
177+
&& ( desc->get_building()->get_allowed_climate_bits() & get_climate() || (get_climate()==1 && desc->get_placement()==factory_desc_t::Water) )) {
178178
// timeline allows for this, and so does climates setting
179179

180180
if( ( city_chain && (desc->get_placement() == factory_desc_t::City && desc->is_consumer_only() ) )

0 commit comments

Comments
 (0)