summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-01-13 15:55:22 +0000
committerDarkvater <darkvater@openttd.org>2007-01-13 15:55:22 +0000
commit5863a6088dd8d892c30f6cf3262ce8294af261ee (patch)
tree3b1e870b3b34caf6324ad899444f37e8b4021de3
parente832a1d046ea4ea948aab122d5aa8ea9097a9b6a (diff)
downloadopenttd-5863a6088dd8d892c30f6cf3262ce8294af261ee.tar.xz
(svn r8102) -Cleanup: Remove unreachable code (r8096), useless cast
-rw-r--r--src/newgrf_gui.cpp2
-rw-r--r--src/road_cmd.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 0854b18f6..8b1203563 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -50,7 +50,7 @@ static void ShowNewGRFInfo(const GRFConfig *c, uint x, uint y, uint w, bool show
}
/* Prepare and draw GRF ID */
- snprintf(buff, lengthof(buff), "%08X", (uint32)BSWAP32(c->grfid));
+ snprintf(buff, lengthof(buff), "%08X", BSWAP32(c->grfid));
SetDParamStr(0, buff);
y += DrawStringMultiLine(x, y, STR_NEWGRF_GRF_ID, w);
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index 37fa9d562..b09bf76c8 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -574,7 +574,7 @@ static int32 ClearTile_Road(TileIndex tile, byte flags)
return DoCommand(tile, b, 0, flags, CMD_REMOVE_ROAD);
}
return_cmd_error(STR_1801_MUST_REMOVE_ROAD_FIRST);
- } break;
+ }
#undef M
case ROAD_TILE_CROSSING: {