News:

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

[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.

Yona-TYT

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/scenario.cc":
if (schedule->empty()  ||  env_t::server) {

by:
if (env_t::server) {

It works well for me.

Dwachs

Parsley, sage, rosemary, and maggikraut.

Yona-TYT

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