You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenTTD-patches/src/saveload
Peter Nelson df691eb31e
Codechange: Don't scan vehicle pool to find targeting disaster vehicle when deleting any vehicle. (#12064)
* Codechange: Don't scan vehicle pool to find targeting disaster vehicle when deleting any vehicle.

When deleting a vehicle, the vehicle pool is scanned to find a targetting disaster vehicle. With lots of vehicles this can take some time, especially when deleting multiple consecutive vehicles.

Disasters vehicles can actually only target road vehicles. Store the DisasterVehicle index in the road vehicle, so that no pool scan is necessary.

* Change: Small UFOs no longer target a vehicle which is already a target.
5 months ago
..
compat Change: Store running AI config inside Company (#12003) 5 months ago
CMakeLists.txt Feature: Region-based pathfinder for ships (#10543) 6 months ago
afterload.cpp Fix #11997: Adjust economy date by 1920 when loading TTD/TTO savegames (#12007) 5 months ago
ai_sl.cpp Change: Store running AI config inside Company (#12003) 5 months ago
airport_sl.cpp Codechange: Use a common sub-class for NewGRFMapping chunks 3 years ago
animated_tile_sl.cpp Codechange: rename smallvec_type to container_func and use only when needed 1 year ago
autoreplace_sl.cpp Cleanup: Remove now unneeded ChunkHandler members 3 years ago
cargomonitor_sl.cpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 11 months ago
cargopacket_sl.cpp Codechange: Use iterators and/or range-for on cargo related loops. 8 months ago
cheat_sl.cpp Feature: Cheat to fix station ratings at 100% (#11346) 8 months ago
company_sl.cpp Codechange: Replace old non-standard attributes with C++17/20 standard attributes. 5 months ago
depot_sl.cpp Cleanup: Remove now unneeded ChunkHandler members 3 years ago
economy_sl.cpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 11 months ago
engine_sl.cpp Codechange: coding style fixes 6 months ago
game_sl.cpp Change: Store running AI config inside Company (#12003) 5 months ago
gamelog_sl.cpp Codechange: do not make a string valid in place, to then copy it 12 months ago
goal_sl.cpp Codechange: use std::string instead of stredup/free for goals 1 year ago
group_sl.cpp Codechange: Use ChunkHandlers sub-classes 3 years ago
industry_sl.cpp Codechange: Split dates and timers into Economy and Calendar time (#10700) 5 months ago
labelmaps_sl.cpp Codechange: Rename *Railtype* to *RailType* for consistency. (#11287) 10 months ago
league_sl.cpp Fix #10469, 5e14a20: [Script] League Table rating element is a int64 everywhere else 1 year ago
linkgraph_sl.cpp Codechange: replace x.size() == 0 with x.empty() 8 months ago
map_sl.cpp Codechange: make explicit when a TileIndex is cast to its basetype (#11190) 11 months ago
misc_sl.cpp Feature: Setting for minutes per calendar year (#11428) 5 months ago
newgrf_sl.cpp Fix #10771, 3901ef9: GRFConfig.filename is now a std::string (#10774) 1 year ago
newgrf_sl.h Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 11 months ago
object_sl.cpp Codechange: Use a common sub-class for NewGRFMapping chunks 3 years ago
oldloader.cpp Codechange: replace ROR/ROL with std::rotr/rotl 5 months ago
oldloader.h Fix #11783, 953445a: TTO savegames are not 65536 by 65536 5 months ago
oldloader_sl.cpp Change: Decouple and remove landscape-dependent cargo types. (#11719) 5 months ago
order_sl.cpp Fix #11556: Missing saveload change for OrderBackup. (#11557) 7 months ago
saveload.cpp Codechange: use std::unique_ptr for managing SaveLoadParams 5 months ago
saveload.h Change: Store running AI config inside Company (#12003) 5 months ago
saveload_error.hpp Codechange: Replace old non-standard attributes with C++17/20 standard attributes. 5 months ago
saveload_filter.h Codechange: use std::shared_ptr to manage saveload filters instead of manually trying to avoid double frees 5 months ago
saveload_internal.h Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 11 months ago
settings_sl.cpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 11 months ago
signs_sl.cpp Codechange: Use ChunkHandlers sub-classes 3 years ago
station_sl.cpp Codechange: Use iterators and/or range-for on cargo related loops. 8 months ago
storage_sl.cpp Codechange: Use ChunkHandlers sub-classes 3 years ago
story_sl.cpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 11 months ago
strings_sl.cpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 11 months ago
subsidy_sl.cpp Codechange: Use ChunkHandlers sub-classes 3 years ago
town_sl.cpp Change: Decouple and remove landscape-dependent cargo types. (#11719) 5 months ago
vehicle_sl.cpp Codechange: Don't scan vehicle pool to find targeting disaster vehicle when deleting any vehicle. (#12064) 5 months ago
water_regions_sl.cpp Change: simplified water region evaluation, removed savegame data (#11750) 5 months ago
waypoint_sl.cpp Codechange: coding style fixes 6 months ago