diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2018-10-14 19:31:14 +0100 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-10-31 12:41:49 +0100 |
commit | 52ed3bcbaa88717ab50f71150ed9fc0b6af4715a (patch) | |
tree | 3d4b4e4a0de01564dae0f9a6e92a79f7e44cbf8a /src/rail_cmd.cpp | |
parent | e0c0394e373d2f3326383e79d7fcb9f4e288ae02 (diff) | |
download | openttd-52ed3bcbaa88717ab50f71150ed9fc0b6af4715a.tar.xz |
Remove: A few bits of dead code
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index d5194e0c3..a0fd968cc 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -2897,11 +2897,9 @@ int TicksToLeaveDepot(const Train *v) case DIAGDIR_NE: return ((int)(v->x_pos & 0x0F) - ((_fractcoords_enter[dir] & 0x0F) - (length + 1))); case DIAGDIR_SE: return -((int)(v->y_pos & 0x0F) - ((_fractcoords_enter[dir] >> 4) + (length + 1))); case DIAGDIR_SW: return -((int)(v->x_pos & 0x0F) - ((_fractcoords_enter[dir] & 0x0F) + (length + 1))); - default: case DIAGDIR_NW: return ((int)(v->y_pos & 0x0F) - ((_fractcoords_enter[dir] >> 4) - (length + 1))); + default: NOT_REACHED(); } - - return 0; // make compilers happy } /** |