The International Simutrans Forum

 

Author Topic: 100.0&r2054 - City attraction built by curiosity builder belongs to city  (Read 3371 times)

0 Members and 1 Guest are viewing this topic.

Offline z9999

  • Devotees (Inactive)
  • *
  • Posts: 848
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);

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10828
  • Languages: De,EN,JP
Re: 100.0&r2054 - City attraction built by curiosity builder belongs to city
« Reply #1 on: October 11, 2008, 07:11:46 PM »
Thank you, done in r2059