Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

[FIXED] "is_schedule_allowed" does not work with empty schedule

Started by Yona-TYT, April 07, 2017, 04:35:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


I already mentioned this here:
Quote from: Yona-TYT on April 02, 2017, 06:34:51 PM
The problem is that "is_schedule_allowed (pl, schedule)" only works when there is more than one station, therefore there is no way to know if the station was selected. I can solve using the "Marked Tile" to determine if the stop was selected.

I changed line 548 in "/dataobj/":
if (schedule->empty()  ||  env_t::server) {

if (env_t::server) {

It works well for me.


Parsley, sage, rosemary, and maggikraut.


Thank you very much, now I can solve some problems with the scenario.  ;D