News:

Beta test the new forum at https://simutrans.forum/
Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

get_way_dirs always returns zero

Started by Yona-TYT, March 24, 2017, 04:33:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT


When I use "tile_x.get_way_dirs (mo_way)", it always is return zero. Maybe a error?  ???

Dwachs

The parameter should be wt_road (or one of the other wt_* constants) not mo_way.
Parsley, sage, rosemary, and maggikraut.

Yona-TYT

Quote from: Dwachs on March 24, 2017, 07:11:01 AM
The parameter should be wt_road (or one of the other wt_* constants) not mo_way.
OK thanks.  ;)