Changeset - r1959:c5a6f024dd5d
[Not reviewed]
master
0 5 0
tron - 19 years ago 2005-06-20 20:09:46
tron@openttd.org
(svn r2465) Remove some unreachable code
5 files changed with 6 insertions and 13 deletions:
0 comments (0 inline, 0 general)
dedicated.c
Show inline comments
 
@@ -312,8 +312,6 @@ static int DedicatedVideoMainLoop(void)
 
		}
 
		CSleep(1);
 
	}
 

	
 
	return ML_QUIT;
 
}
 

	
 

	
depot.h
Show inline comments
 
@@ -73,13 +73,13 @@ static inline bool IsTileDepotType(TileI
 
	{
 
		case TRANSPORT_RAIL:
 
			return IsTileType(tile, MP_RAILWAY) && (_map5[tile] & 0xFC) == 0xC0;
 
			break;
 

	
 
		case TRANSPORT_ROAD:
 
			return IsTileType(tile, MP_STREET) && (_map5[tile] & 0xF0) == 0x20;
 
			break;
 

	
 
		case TRANSPORT_WATER:
 
			return IsTileType(tile, MP_WATER) && (_map5[tile] & ~3) == 0x80;
 
			break;
 

	
 
		default:
 
			assert(0);
 
			return false;
news_gui.c
Show inline comments
 
@@ -194,7 +194,6 @@ static void NewsWindowProc(Window *w, Wi
 
		switch (e->message.msg) {
 
			case WE_CREATE: w->message.msg = e->message.wparam; break;
 
			case WE_DESTROY: w->message.msg = 0; break;
 
			break;
 
		}
 
		break;
 

	
vehicle.c
Show inline comments
 
@@ -1750,14 +1750,14 @@ Trackdir GetVehicleTrackdir(const Vehicl
 
				return DiagdirToDiagTrackdir((v->direction >> 1) & 3);
 

	
 
			return TrackDirectionToTrackdir(FIND_FIRST_BIT(v->u.rail.track),v->direction);
 
			break;
 

	
 
		case VEH_Ship:
 
			if (v->u.ship.state == 0x80)  /* Inside a depot? */
 
				/* We'll assume the ship is facing outwards */
 
				return DiagdirToDiagTrackdir(GetDepotDirection(v->tile, TRANSPORT_WATER)); /* Ship in depot */
 

	
 
			return TrackDirectionToTrackdir(FIND_FIRST_BIT(v->u.ship.state),v->direction);
 
			break;
 

	
 
		case VEH_Road:
 
			if (v->u.road.state == 254) /* We'll assume the road vehicle is facing outwards */
 
				return DiagdirToDiagTrackdir(GetDepotDirection(v->tile, TRANSPORT_ROAD)); /* Road vehicle in depot */
 
@@ -1766,7 +1766,7 @@ Trackdir GetVehicleTrackdir(const Vehicl
 
				return DiagdirToDiagTrackdir(GetRoadStationDir(v->tile)); /* Road vehicle in a station */
 

	
 
			return DiagdirToDiagTrackdir((v->direction >> 1) & 3);
 
			break;
 

	
 
		/* case VEH_Aircraft: case VEH_Special: case VEH_Disaster: */
 
		default: return 0xFF;
 
	}
viewport.c
Show inline comments
 
@@ -1996,25 +1996,21 @@ static byte Check2x1AutoRail(int mode)
 
		if (fxpy >= 20 && sxpy <= 12) { /*SwapSelection(); DoRailroadTrack(0); */return 3; }
 
		if (fxmy < -3 && sxmy > 3) {/* DoRailroadTrack(0); */return 5; }
 
		return 1;
 
		break;
 

	
 
	case 1:
 
		if (fxmy > 3 && sxmy < -3) { /*SwapSelection(); DoRailroadTrack(0); */return 4; }
 
		if (fxpy <= 12 && sxpy >= 20) { /*DoRailroadTrack(0); */return 2; }
 
		return 1;
 
		break;
 

	
 
	case 2:
 
		if (fxmy > 3 && sxmy < -3) { /*DoRailroadTrack(3);*/ return 4; }
 
		if (fxpy >= 20 && sxpy <= 12) { /*SwapSelection(); DoRailroadTrack(0); */return 3; }
 
		return 0;
 
		break;
 

	
 
	case 3:
 
		if (fxmy < -3 && sxmy > 3) { /*SwapSelection(); DoRailroadTrack(3);*/ return 5; }
 
		if (fxpy <= 12 && sxpy >= 20) { /*DoRailroadTrack(0); */return 2; }
 
		return 0;
 
		break;
 
	}
 

	
 
	return 0; // avoids compiler warnings
0 comments (0 inline, 0 general)