(svn r9730) -Feature: [NewGRF] Add support for miscellaneous grf feature bit 1 - paved roads on desert tiles.

This commit is contained in:
maedhros
2007-04-27 21:35:02 +00:00
parent 8491e15416
commit 1d05573950
3 changed files with 38 additions and 4 deletions

View File

@@ -3764,7 +3764,7 @@ static void ParamSet(byte *buf, int len)
case 0x9E: // Miscellaneous GRF features
_misc_grf_features = res;
/* Set train list engine width */
_traininfo_vehicle_width = HASBIT(res, 3) ? 32 : 29;
_traininfo_vehicle_width = HasGrfMiscBit(GMB_TRAIN_WIDTH_32_PIXELS) ? 32 : 29;
break;
default:
@@ -4811,3 +4811,8 @@ void LoadNewGRF(uint load_index, uint file_index)
/* Call any functions that should be run after GRFs have been loaded. */
AfterLoadGRFs();
}
bool HasGrfMiscBit(GrfMiscBit bit)
{
return HASBIT(_misc_grf_features, bit);
}