mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 07:29:44 +00:00
(svn r10492) -Fix [YAPF, r10491]: commands with no effect (glx)
This commit is contained in:
parent
3efc078e2f
commit
0452fc482d
@ -210,7 +210,7 @@ protected:
|
|||||||
if (!m_is_tunnel) {
|
if (!m_is_tunnel) {
|
||||||
DiagDirection tunnel_enterdir = GetTunnelDirection(m_new_tile);
|
DiagDirection tunnel_enterdir = GetTunnelDirection(m_new_tile);
|
||||||
if (tunnel_enterdir != m_exitdir) {
|
if (tunnel_enterdir != m_exitdir) {
|
||||||
EC_NO_WAY;
|
m_err = EC_NO_WAY;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -218,7 +218,7 @@ protected:
|
|||||||
if (!m_is_bridge) {
|
if (!m_is_bridge) {
|
||||||
DiagDirection ramp_enderdir = GetBridgeRampDirection(m_new_tile);
|
DiagDirection ramp_enderdir = GetBridgeRampDirection(m_new_tile);
|
||||||
if (ramp_enderdir != m_exitdir) {
|
if (ramp_enderdir != m_exitdir) {
|
||||||
EC_NO_WAY;
|
m_err = EC_NO_WAY;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user