(svn r8102) -Cleanup: Remove unreachable code (r8096), useless cast
authorDarkvater
Sat, 13 Jan 2007 15:55:22 +0000
changeset 5894 eb5ff472c10f
parent 5893 16a86ac09d80
child 5895 c6f9316f6d42
(svn r8102) -Cleanup: Remove unreachable code (r8096), useless cast
src/newgrf_gui.cpp
src/road_cmd.cpp
--- a/src/newgrf_gui.cpp	Sat Jan 13 15:50:36 2007 +0000
+++ b/src/newgrf_gui.cpp	Sat Jan 13 15:55:22 2007 +0000
@@ -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	Sat Jan 13 15:50:36 2007 +0000
+++ b/src/road_cmd.cpp	Sat Jan 13 15:55:22 2007 +0000
@@ -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: {