350 case 0xA5: return GB(industry->last_month_transported[0], 8, 8); |
350 case 0xA5: return GB(industry->last_month_transported[0], 8, 8); |
351 |
351 |
352 case 0xA6: return industry->type; |
352 case 0xA6: return industry->type; |
353 case 0xA7: return industry->founder; |
353 case 0xA7: return industry->founder; |
354 case 0xA8: return industry->random_color; |
354 case 0xA8: return industry->random_color; |
355 case 0xA9: return Clamp(0, industry->last_prod_year - ORIGINAL_BASE_YEAR, 255); |
355 case 0xA9: return Clamp(industry->last_prod_year - ORIGINAL_BASE_YEAR, 0, 255); |
356 case 0xAA: return industry->counter; |
356 case 0xAA: return industry->counter; |
357 case 0xAB: return GB(industry->counter, 8, 8); |
357 case 0xAB: return GB(industry->counter, 8, 8); |
358 case 0xAC: return industry->was_cargo_delivered; |
358 case 0xAC: return industry->was_cargo_delivered; |
359 |
359 |
360 case 0xB0: return Clamp(0, industry->construction_date - DAYS_TILL_ORIGINAL_BASE_YEAR, 65535); // Date when built since 1920 (in days) |
360 case 0xB0: return Clamp(industry->construction_date - DAYS_TILL_ORIGINAL_BASE_YEAR, 0, 65535); // Date when built since 1920 (in days) |
361 case 0xB3: return industry->construction_type; // Construction type |
361 case 0xB3: return industry->construction_type; // Construction type |
362 case 0xB4: return Clamp(0, industry->last_cargo_accepted_at - DAYS_TILL_ORIGINAL_BASE_YEAR, 65535); // Date last cargo accepted since 1920 (in days) |
362 case 0xB4: return Clamp(industry->last_cargo_accepted_at - DAYS_TILL_ORIGINAL_BASE_YEAR, 0, 65535); // Date last cargo accepted since 1920 (in days) |
363 } |
363 } |
364 |
364 |
365 DEBUG(grf, 1, "Unhandled industry property 0x%X", variable); |
365 DEBUG(grf, 1, "Unhandled industry property 0x%X", variable); |
366 |
366 |
367 *available = false; |
367 *available = false; |