The International Simutrans Forum

 

Author Topic: [small change] Mark waypoints on grund using "grund_t :: marked"  (Read 410 times)

0 Members and 1 Guest are viewing this topic.

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1234
    • Simutrans-BLOG
  • Languages: ES
Hello how are you ? .

I need to make the stops marked with "grund_t :: marked", this in order to solve a small problem in the scenario tutorial.

Also I do not see why the terrestrial "waypoints" can not be marked with "grund_t :: marked", do not you think?.
Code: [Select]
Line 148 in "schedule_gui.cc"--------------------------------
if(  marking  ) {
++    gr->set_flag( grund_t::marked );
    if(  !obj->is_moving()  ) {
        obj->set_flag( obj_t::highlight );
    }
}
else {
++    gr->clear_flag( grund_t::marked );
    obj->clear_flag( obj_t::highlight );
}

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1234
    • Simutrans-BLOG
  • Languages: ES
Re: [small change] Mark waypoints on grund using "grund_t :: marked"
« Reply #1 on: July 13, 2019, 01:17:43 AM »
Some answer ?.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4603
  • Languages: EN, DE, AT
Re: [small change] Mark waypoints on grund using "grund_t :: marked"
« Reply #2 on: July 13, 2019, 10:19:25 AM »
Why should they be marked with grund_t::marked? Moving the cursor across such marked tiles will remove the mark.

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1234
    • Simutrans-BLOG
  • Languages: ES
Re: [small change] Mark waypoints on grund using "grund_t :: marked"
« Reply #3 on: July 13, 2019, 11:00:50 AM »
Why should they be marked with grund_t::marked? Moving the cursor across such marked tiles will remove the mark.
My idea is to obtain the same behavior that is seen when a ship is routed in the water, in which the means are marked as "grund_t :: mark" in a kind of loop, therefore if the cursor clears it from the wayponit, " grund_t :: marked "is created again.