The International Simutrans Forum

Development => Patches & Projects => Topic started by: Yona-TYT on July 05, 2019, 02:59:22 AM

Title: [small change] Mark waypoints on grund using "grund_t :: marked"
Post by: Yona-TYT on July 05, 2019, 02:59:22 AM
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 );
}
Title: Re: [small change] Mark waypoints on grund using "grund_t :: marked"
Post by: Yona-TYT on July 13, 2019, 01:17:43 AM
Some answer ?.
Title: Re: [small change] Mark waypoints on grund using "grund_t :: marked"
Post by: Dwachs 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.
Title: Re: [small change] Mark waypoints on grund using "grund_t :: marked"
Post by: Yona-TYT 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.