diff options
author | Rubidium <rubidium@openttd.org> | 2021-06-16 23:21:21 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-06-17 16:18:30 +0200 |
commit | 281a65b3e17310d07458652a3f6cba55aff59dc0 (patch) | |
tree | e3f06df00a9f8fc074f863b230980f2a11b066e4 /src/signal.cpp | |
parent | 357af686dc5e0a0085da5c42639abe83caebe6c3 (diff) | |
download | openttd-281a65b3e17310d07458652a3f6cba55aff59dc0.tar.xz |
Cleanup: simplify some boolean expressions
Diffstat (limited to 'src/signal.cpp')
-rw-r--r-- | src/signal.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/signal.cpp b/src/signal.cpp index 4a7e7913e..329b1b05d 100644 --- a/src/signal.cpp +++ b/src/signal.cpp @@ -216,9 +216,7 @@ static inline bool CheckAddToTodoSet(TileIndex t1, DiagDirection d1, TileIndex t assert(!_tbdset.IsIn(t1, d1)); // it really shouldn't be there already - if (_tbdset.Remove(t2, d2)) return false; - - return true; + return !_tbdset.Remove(t2, d2); } |