The International Simutrans Forum
Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: inkelyad on October 07, 2010, 07:35:52 AM
-
For sea-based stations 'capacity' field from dat file is used.
simhalt.cc, haltestelle_t::recalc_station_type()
if(gr->ist_wasser()) {
[SKIP]
if(besch->get_enabled()&1)
{
capacity[0] += besch->get_station_capacity();
}
if(besch->get_enabled()&2)
{
capacity[1] += besch->get_station_capacity();
}
if(besch->get_enabled()&4)
{
capacity[2] += besch->get_station_capacity();
}
}
else
{
// no sperate capacities: sum up all
capacity[0] += besch->get_station_capacity();
capacity[2] = capacity[1] = capacity[0];
}
}
continue;
}
But for all other is not, it is level-based. (besch->get_level())
if( welt->get_einstellungen()->is_seperate_halt_capacities() ) {
if(besch->get_enabled()&1) {
capacity[0] += besch->get_level()*32;
}
if(besch->get_enabled()&2) {
capacity[1] += besch->get_level()*32;
}
if(besch->get_enabled()&4) {
capacity[2] += besch->get_level()*32;
}
}
else {
// no sperate capacities: sum up all
capacity[0] += besch->get_level()*32;
capacity[2] = capacity[1] = capacity[0];
}
-
Thank you for the report - I have now fixed this.