News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

[small change] Mark waypoints on grund using "grund_t :: marked"

Started by Yona-TYT, July 05, 2019, 02:59:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT

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

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 );
}


Dwachs

Why should they be marked with grund_t::marked? Moving the cursor across such marked tiles will remove the mark.
Parsley, sage, rosemary, and maggikraut.

Yona-TYT

Quote from: 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.
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.