External Publication
Visit Post

OpenTTD AIs and Game Scripts • Re: nasal demons in action

Transport Tycoon Forums - Index page [Unofficial] February 28, 2026
Source

Yes copy is by reference, but problem is that we're restricted to copy by reference. Only way to copy by value is to use array like shown, but array is not ideal when you're dealing with AIList or a tables resulting in code bloat and loss of ticks.

So in my case I now have 15 lines of code bloat to have a copy by value. If there would be API to let copy by value it would take less ticks than having to do it manually.

I though this is API restriction but it's true for tables as well, IDK why the language has such restriction.

Statistics: Posted by GoldMine — 28 Feb 2026 18:09


Discussion in the ATmosphere

Loading comments...