changeset 5643:00155b55016f draft

(svn r8102) -Cleanup: Remove unreachable code (r8096), useless cast
author Darkvater <Darkvater@openttd.org>
date Sat, 13 Jan 2007 15:55:22 +0000
parents f06a25e04204
children 3463e03f049b
files src/newgrf_gui.cpp src/road_cmd.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -50,7 +50,7 @@
 	}
 
 	/* 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);
 
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -574,7 +574,7 @@
 				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: {