src/newgrf_industries.cpp
changeset 8659 9b39354348d9
parent 8636 2b158acb649c
child 8709 4187ad809fe7
equal deleted inserted replaced
8658:fcfacbbf4400 8659:9b39354348d9
   327 		case 0xA5: return GB(industry->last_month_transported[0], 8, 8);
   327 		case 0xA5: return GB(industry->last_month_transported[0], 8, 8);
   328 
   328 
   329 		case 0xA6: return industry->type;
   329 		case 0xA6: return industry->type;
   330 		case 0xA7: return industry->founder;
   330 		case 0xA7: return industry->founder;
   331 		case 0xA8: return industry->random_color;
   331 		case 0xA8: return industry->random_color;
   332 		case 0xA9: return Clamp(0, industry->last_prod_year - 1920, 255);
   332 		case 0xA9: return Clamp(0, industry->last_prod_year - ORIGINAL_BASE_YEAR, 255);
   333 		case 0xAA: return industry->counter;
   333 		case 0xAA: return industry->counter;
   334 		case 0xAB: return GB(industry->counter, 8, 8);
   334 		case 0xAB: return GB(industry->counter, 8, 8);
   335 		case 0xAC: return industry->was_cargo_delivered;
   335 		case 0xAC: return industry->was_cargo_delivered;
   336 
   336 
   337 		case 0xB0: return Clamp(0, industry->construction_date - DAYS_TILL_ORIGINAL_BASE_YEAR, 65535); // Date when built since 1920 (in days)
   337 		case 0xB0: return Clamp(0, industry->construction_date - DAYS_TILL_ORIGINAL_BASE_YEAR, 65535); // Date when built since 1920 (in days)