Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-12-27 | Codechange: Use std::string in file scanners. | Michael Lutz | |
2020-12-27 | Codechange: Even more std::string usage in file IO. | Michael Lutz | |
2020-12-27 | Codechange: Convert some more FIO functions to take std::string. | Michael Lutz | |
2020-12-27 | Codechange: Replace assert_compile macro with static_assert | Charles Pigott | |
2020-12-27 | Cleanup: Remove unused ChunkType flag CH_AUTO_LENGTH | cirdan | |
CH_AUTO_LENGTH is no longer used anywhere, so remove all code that depends on it. | |||
2020-12-27 | Cleanup: Remove save-only autolength flag from economy chunk handlers | cirdan | |
CH_AUTO_LENGTH is only used when saving chunks; it makes no sense to set it for chunks without a save handler. | |||
2020-12-27 | Codechange: Replace FOR_VEHICLE_ORDERS with range-based for loops | glx22 | |
2020-12-22 | Change: [Linkgraph] Pause the game when linkgraph jobs lag (#6470) | Jonathan G Rennison | |
Check if the job is still running two date fract ticks before it is due to join, and if so pause the game until its done. When loading a game, check if the game would block immediately due to a job which is scheduled to be joined within two date fract ticks, and if so pause the game until its done. This avoids the main thread being blocked on a thread join, which appears to the user as if the game is unresponsive, as the UI does not repaint and cannot be interacted with. Show if pause is due to link graph job in status bar, update network messages. This does not apply for network clients. | |||
2020-12-22 | Feature: Set exclusive access to industry from GS (#8115) | Pavel Stupnikov | |
2020-12-22 | Feature: Influence industry production changes from GS (#7912) | Niels Martin Hansen | |
2020-12-22 | Fix: next 67 savegame versions are used in PatchPacks; skip them (#8411) | Patric Stout | |
Various of PatchPacks (Spring 2013, Joker, ChillPP) used versions slightly higher than ours. Of course, as time went by, this caught up with us, and we are now almost pushing a new version that would conflict with them. To avoid users creating unneeded issues about "why can I not load my savegame", lets be ahead of the curve and flat-out refuse to load them. Version-wise, this is totally fine. We have ~32k versions to go before we run out (0x8000 is masked by JGRPP; we should avoid using that). At the rate we bump savegames, this is not going to happen in any sane reality. | |||
2020-12-15 | Add: support for emscripten (play-OpenTTD-in-the-browser) | Patric Stout | |
Emscripten compiles to WASM, which can be loaded via HTML / JavaScript. This allows you to play OpenTTD inside a browser. Co-authored-by: milek7 <me@milek7.pl> | |||
2020-12-15 | Codechange: Make use of the improved C++17 emplace_back function. | Michael Lutz | |
2020-12-06 | Codechange: don't do work GetVariableAddress() is already doing | Patric Stout | |
2020-12-06 | Fix: do not add an offset to a nullptr | Patric Stout | |
This is, by specs, undefined behaviour. See https://reviews.llvm.org/D67122 In cases where this is done, optimizations done by LLVM can generate code that causes crashes. GetVariableAddress() had two (legit) ways this could happen: - For SaveLoad set to global - For SaveLoad set to SLE_VAR_NULL, where sld->address is always a nullptr, and object could or could not be a nullptr. | |||
2020-12-06 | Fix 63ccb36ef3: Crash trying to load TTO/TTD savegames. (#8356) | Michael Lutz | |
2020-07-27 | Codechange #8258: Remove unused town cargo caches from the savegame | dP | |
2020-07-27 | Codechange: Spell 'Viewport' consistently | TechGeekNZ | |
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'. This patch makes everything consistent. | |||
2020-06-28 | Change #8159: Remove now unused town cargo caches without bumping the ↵ | dP | |
savegame version | |||
2020-06-28 | Revert #8157: Redundant change | dP | |
2020-06-28 | Fix: Incorrect save/load array size of Town::cargo_accepted | Jonathan G Rennison | |
In 11ab3c4e the number of cargo types was changed from 32 to 64. The save/load of Town::cargo_accepted was not updated, such that only half of the data structure is saved/loaded in savegame versions 199 to 218. Discard and regenerate data from all savegame versions prior to 219. | |||
2020-06-28 | Codechange: Move SlSkipBytes to saveload.h | Jonathan G Rennison | |
2020-06-27 | Codechange: Add WARN_FORMAT to vseprintf and fix the cascade of warnings ↵ | Charles Pigott | |
that followed | |||
2020-06-22 | Fix 63ccb36e: Incorrect string type for OrderBackup::name save/load | Jonathan G Rennison | |
In 63ccb36e BaseConsist::name was changed from a malloced char* to a std::string. OrderBackup inherits from BaseConsist. The saveload of OrderBackup::name was not updated. | |||
2020-06-05 | Add: introduce CMake for project management | Patric Stout | |
CMake works on all our supported platforms, like MSVC, Mingw, GCC, Clang, and many more. It allows for a single way of doing things, so no longer we need shell scripts and vbs scripts to work on all our supported platforms. Additionally, CMake allows to generate project files for like MSVC, KDevelop, etc. This heavily reduces the lines of code we need to support multiple platforms from a project perspective. Addtiionally, this heavily improves our detection of libraries, etc. | |||
2020-05-21 | Codechange: Use std::string for most of the user-settable custom names. | Michael Lutz | |
2020-05-21 | Codechange: Store GS lang texts in std::strings. | Michael Lutz | |
2020-05-12 | Fix #8142, 5aa6351: Buoy owner and tile owner can be different (#8143) | glx22 | |
2020-05-10 | Fix #8132: Corrupted savegame crashing OpenTTD on load | glx | |
2020-05-10 | Fix: Stop any gamelog action when recovering from SlError() | glx | |
2020-05-06 | Fix #8021: limit savegame range for docking tiles fixing | glx | |
2020-05-06 | Fix: reset roadtype/streetcartype info for non-road bridges | Yexo | |
2020-05-04 | Fix #8108: always update tile_hash after updating v->tile | Yexo | |
2020-05-04 | Fix c01a2e2: crash on loading old savegames with invalid animated tile ↵ | SamuXarick | |
information | |||
2020-05-04 | Fix #8108: possible crash on loading TTD savegames with phantom oil rigs | SamuXarick | |
2020-03-30 | Fix #8020: Add missing docking tiles around industry neutral stations | SamuXarick | |
2020-02-19 | Fix #8011, f5381798: Dock tile in TTD savegame was only 2 bytes | glx | |
2020-02-08 | Change: Heading for 1.11 now | glx | |
2020-02-06 | Feature: SLF_HEX to print hexadecimal numbers in the config file | Johannes E. Krause | |
2020-01-12 | Codechange: Cache resolved town, station and industry name strings | Jonathan G Rennison | |
2020-01-12 | Fix #7925: Reset temporary saveload data at the start of loading a savegame ↵ | frosch | |
instead of at the end. Otherwise temporary data may be passed from an aborted load action to the next load action. | |||
2020-01-05 | Fix: When loading old timetabled saves, also reset cached timetable duration | Charles Pigott | |
2020-01-05 | Fix #7587: Crash when loading saves with waypoints with invalid locations | Charles Pigott | |
2019-12-28 | Feature: Configurable game ending year | Niels Martin Hansen | |
Functionally reverts 683b65ee1 | |||
2019-12-21 | Codechange: Replace FOR_ALL_TOWNS with range-based for loops | glx | |
2019-12-21 | Codechange: Replace FOR_ALL_SUBSIDIES with range-based for loops | glx | |
2019-12-21 | Codechange: Replace story related FOR_ALL with range-based for loops | glx | |
2019-12-21 | Codechange: Replace FOR_ALL_SIGNS with range-based for loops | glx | |
2019-12-21 | Codechange: Replace FOR_ALL_ROADSTOPS with range-based for loops | glx | |
2019-12-21 | Codechange: Replace FOR_ALL_OBJECTS with range-based for loops | glx | |