Permalink
Browse files

FIX powerline tunnel maintenance see r5757

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5758 8aca7d54-2c30-db11-9de9-000461428c89
  • Loading branch information...
1 parent 95e966c commit ec5e4f08eeab10cc2b703a5458844c04ec65978e @Dwachs Dwachs committed Jun 2, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 bauer/wegbauer.cc
View
@@ -1994,6 +1994,7 @@ bool wegbauer_t::baue_tunnelboden()
lt->set_besch( wb );
tunnel->obj_add( lt );
lt->laden_abschliessen();
+ spieler_t::add_maintenance( sp, -lt->get_besch()->get_wartung());
}
tunnel->calc_bild();
cost -= tunnel_besch->get_preis();
@@ -2011,6 +2012,7 @@ bool wegbauer_t::baue_tunnelboden()
gr->obj_add( lt );
} else {
lt->leitung_t::laden_abschliessen(); // only change powerline aspect
+ spieler_t::add_maintenance( sp, -lt->get_besch()->get_wartung());
}
}
tunnel_t *tunnel = gr->find<tunnel_t>();

0 comments on commit ec5e4f0

Please sign in to comment.