From ca7dce1fc219eca579c33ff03a77c21186435e3b Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 9 Nov 2013 10:45:05 +0000 Subject: (svn r25961) -Fix [FS#5779]: [NewGRF] A powered rail type implies it is compatible as well, but some NewGRF didn't state that causing the path reservation code to bail out in some cases because there wasn't a compatible path --- src/newgrf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf.cpp') diff --git a/src/newgrf.cpp b/src/newgrf.cpp index a1e8d0e54..36cdadf68 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3969,8 +3969,8 @@ static ChangeInfoResult RailTypeChangeInfo(uint id, int numinfo, int prop, ByteR RailType rt = GetRailTypeByLabel(BSWAP32(label), false); if (rt != INVALID_RAILTYPE) { switch (prop) { + case 0x0F: SetBit(rti->powered_railtypes, rt); // Powered implies compatible. case 0x0E: SetBit(rti->compatible_railtypes, rt); break; - case 0x0F: SetBit(rti->powered_railtypes, rt); break; case 0x18: SetBit(rti->introduction_required_railtypes, rt); break; case 0x19: SetBit(rti->introduces_railtypes, rt); break; } -- cgit v1.2.3-54-g00ecf