Mercurial > hg > openttd
changeset 8163:48e06b96549c draft
(svn r11725) -Codechange: less a magical number
author | belugas <belugas@openttd.org> |
---|---|
date | Mon, 31 Dec 2007 02:39:50 +0000 |
parents | e77c1af20217 |
children | 36cf807deb35 |
files | src/newgrf_industries.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -329,7 +329,7 @@ case 0xA6: return industry->type; case 0xA7: return industry->founder; case 0xA8: return industry->random_color; - case 0xA9: return Clamp(0, industry->last_prod_year - 1920, 255); + case 0xA9: return Clamp(0, industry->last_prod_year - ORIGINAL_BASE_YEAR, 255); case 0xAA: return industry->counter; case 0xAB: return GB(industry->counter, 8, 8); case 0xAC: return industry->was_cargo_delivered;