![]() * make sure the railtypes are compatible */ If (! IsEngineBuildable(to, type, company)) return false * check that the new vehicle type is available to the company and its type is the same as the original one */ * Checks some basic properties whether autoreplace is allowedīool CheckAutoreplaceValidity(EngineID from, EngineID to, CompanyID company)Īssert( Engine::IsValidID(from) & Engine::IsValidID(to)) Ĭonst Engine *e_from = Engine::Get(from) Return (available_cargoes_a = 0 || available_cargoes_b = 0 || (available_cargoes_a & available_cargoes_b) != 0) Static bool EnginesHaveCargoInCommon(EngineID engine_a, EngineID engine_b)ĬargoTypes available_cargoes_a = GetUnionOfArticulatedRefitMasks(engine_a, true) ĬargoTypes available_cargoes_b = GetUnionOfArticulatedRefitMasks(engine_b, true) * true if they can both carry the same type of cargo (or at least one of them got no capacity at all) * Figure out if two engines got at least one type of cargo in common (refitting if needed) ** autoreplace_cmd.cpp Deals with autoreplace execution but not the setup */Įxtern void ChangeVehicleViewports(VehicleID from_index, VehicleID to_index) Įxtern void ChangeVehicleNews(VehicleID from_index, VehicleID to_index) Įxtern void ChangeVehicleViewWindow(VehicleID from_index, VehicleID to_index) You should have received a copy of the GNU General Public License along with OpenTTD. * See the GNU General Public License for more details. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Article taken from .* OpenTTD is free software you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. Since it will no doubt be asked: why download on Steam anyway when it's been available in Linux distributions for years? The point is extra exposure, opening it up to even more people to see it and enjoy it!įollow OpenTTD on Steam or download right now from the official site. I've tested it myself from the Steam Beta build they provided to me and it works perfectly on both Ubuntu 20.04 and Arch Linux. Thankfully, after some discussion and others getting involved they found a way around it and so we can expect it on Linux at the Steam release on April 1. ![]() Partly due to the Steam Linux Runtime being based on older libraries, which caused issues with the way the OpenTTD team automate their builds. The team had a few packaging troubles as getting a game up on Steam has a more involved process compared to direct downloads.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |