Author Topic: [FIXED] "is_schedule_allowed" does not work with empty schedule  (Read 297 times)

0 Members and 1 Guest are viewing this topic.

Offline Yona-TYT

I already mentioned this here:
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":
Code: [Select]
if (schedule->empty()  ||  env_t::server) {
by:
Code: [Select]
if (env_t::server) {
It works well for me.
« Last Edit: April 08, 2017, 08:29:56 AM by Dwachs »

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4233
  • Total likes: 169
  • Helpful: 149
  • Languages: EN, DE, AT
Re: "is_schedule_allowed" does not work with a waypoint.
« Reply #1 on: April 07, 2017, 07:09:23 PM »
Ok: this is changed in r8198
Parsley, sage, rosemary, and maggikraut.

Offline Yona-TYT

Re: "is_schedule_allowed" does not work with a waypoint.
« Reply #2 on: April 07, 2017, 11:37:39 PM »
Thank you very much, now I can solve some problems with the scenario.  ;D