Hi all,
Quick question: Are old IDs from closed industries re-used for new industries?
That is to say, if I maintain a reference to an industry ID after it closes, will the ID always be invalid by AIIndustry.IsValidIndustry(), or could it suddenly spring back into life when a new industry opens?
I want to know if I need to handle this explicitly.
Thanks.
Are Industry IDs Recycled After Closure?
Moderator: OpenTTD Developers
Are Industry IDs Recycled After Closure?
PathZilla - A networking AI - Now with tram support.
Re: Are Industry IDs Recycled After Closure?
They do get recycled. Every now and then I get messages like:
Industry 0x00000 has been closed (this is a good thing, as I ask for the name of an industry which isn't there anymore). But I also get messages like:
Industry 'Fieldberg Farm' has been closed.
... and a little later.
New Industry: 'Fieldberg Farm' opened.
So the old ID has been reused for a new industry.
Industry 0x00000 has been closed (this is a good thing, as I ask for the name of an industry which isn't there anymore). But I also get messages like:
Industry 'Fieldberg Farm' has been closed.
... and a little later.
New Industry: 'Fieldberg Farm' opened.
So the old ID has been reused for a new industry.
Last edited by Morloth on 07 Apr 2009 00:36, edited 1 time in total.
Re: Are Industry IDs Recycled After Closure?
Cheers Morloth. Thats another thing to add to the list then!
PathZilla - A networking AI - Now with tram support.
Who is online
Users browsing this forum: No registered users and 15 guests