Dwachs / simutrans-scenarios

Repository for scenario development for simutrans.
2 stars 1 forks source link

Test tile in underground #6

Open Andarix opened 2 years ago

Andarix commented 2 years ago

The ground is at 84,38,0 and there is a way there.

If I query field 84,38,-1 with tile_x.get_way(waytype) I get an instance back but there is nothing there.

message

84,38,-1 tile_b.get_way(wt) (instance : 0x076CCD68)

Which instance is returned since the return should actually be null.

EDIT script tool section

Dwachs commented 2 years ago

This is working as expected/documented: tile_x(84,38,-1) returns the ground tile if there is no tile at -1.

(If this behavior is good idea is another question ...)