diff options
author | KUDr <KUDr@openttd.org> | 2007-07-09 19:24:45 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2007-07-09 19:24:45 +0000 |
commit | ad5a68a28236f8b24a9335a94ec9ea1a51705bf5 (patch) | |
tree | 536ed6db3308ff365137601f66a322c2dae04bef | |
parent | 746a33747bba9b28a116446e3a9bf4324e7569b4 (diff) | |
download | openttd-ad5a68a28236f8b24a9335a94ec9ea1a51705bf5.tar.xz |
(svn r10492) -Fix [YAPF, r10491]: commands with no effect (glx)
-rw-r--r-- | src/yapf/follow_track.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yapf/follow_track.hpp b/src/yapf/follow_track.hpp index c06831841..bc2f72eed 100644 --- a/src/yapf/follow_track.hpp +++ b/src/yapf/follow_track.hpp @@ -210,7 +210,7 @@ protected: if (!m_is_tunnel) { DiagDirection tunnel_enterdir = GetTunnelDirection(m_new_tile); if (tunnel_enterdir != m_exitdir) { - EC_NO_WAY; + m_err = EC_NO_WAY; return false; } } @@ -218,7 +218,7 @@ protected: if (!m_is_bridge) { DiagDirection ramp_enderdir = GetBridgeRampDirection(m_new_tile); if (ramp_enderdir != m_exitdir) { - EC_NO_WAY; + m_err = EC_NO_WAY; return false; } } |