News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

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

Started by z9999, October 08, 2008, 12:28:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

z9999

simutrans 100.0&r2054

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


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);


prissi