(svn r26058) -Fix: handle the return value of a number of functions better
This commit is contained in:
@@ -196,7 +196,7 @@ struct CYapfRailNodeT
|
||||
while (cur != GetLastTile() || cur_td != GetLastTrackdir()) {
|
||||
if (!((obj.*func)(cur, cur_td))) return false;
|
||||
|
||||
ft.Follow(cur, cur_td);
|
||||
if (!ft.Follow(cur, cur_td)) break;
|
||||
cur = ft.m_new_tile;
|
||||
assert(KillFirstBit(ft.m_new_td_bits) == TRACKDIR_BIT_NONE);
|
||||
cur_td = FindFirstTrackdir(ft.m_new_td_bits);
|
||||
|
Reference in New Issue
Block a user