The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999 on October 08, 2008, 12:28:34 pm

Title: 100.0&r2054 - City attraction built by curiosity builder belongs to city
Post by: z9999 on October 08, 2008, 12:28:34 pm
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);
Title: Re: 100.0&r2054 - City attraction built by curiosity builder belongs to city
Post by: prissi on October 11, 2008, 07:11:46 pm
Thank you, done in r2059