News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

[r7640] SQAPI: halt_x.is_connected

Started by HaydenRead, January 17, 2016, 05:19:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HaydenRead

halt_x.is_connected always returns 0
This is because it first checks if (halt.is_bound()) and returns 0, then checks in the function that is called if (!halt.is_bound()) and returns 0

The patch changes the first check to also be !halt.is_bound()

Dwachs

thank you for spotting this (admittingly stupid) error, in r7743
Parsley, sage, rosemary, and maggikraut.