Skip to main content
Topic: 100.0&r2054 - City attraction built by curiosity builder belongs to city (Read 4447 times) previous topic - next topic

100.0&r2054 - City attraction built by curiosity builder belongs to city

simutrans 100.0&r2054

When I built a city attraction using with curiosity builder, this city attraction belongs to city.

Code: [Select]
Index: simwerkz.cc
===================================================================
--- simwerkz.cc (r2056)
+++ simwerkz.cc (copy)
@@ -2635,7 +2635,7 @@
  gebaeude_t *gb = hausbauer_t::baue(welt, gb_sp, gr->gib_pos(), rotation, besch);
  if(gb) {
  // building successfull
- if(  besch->gib_utyp()!=haus_besch_t::attraction_land  ) {
+ if(  besch->gib_utyp()!=haus_besch_t::attraction_land  &&  besch->gib_utyp()!=haus_besch_t::attraction_city  ) {
  stadt_t *city = welt->suche_naechste_stadt( pos.gib_2d() );
  if(city) {
  city->add_gebaeude_to_stadt(gb);

Re: 100.0&r2054 - City attraction built by curiosity builder belongs to city

Reply #1
Thank you, done in r2059