OpenTTD/src/script/api
Peter Nelson a28ab8cac2
Codechange: Replace C-style casts to size_t with static_cast. (#12455)
* Codechange: Replace C-style casts to size_t with static_cast.

This touches only simple value-type casts.

* Codechange: Replace static_cast<size_t>(-1) with SIZE_MAX

Co-authored-by: Rubidium <rubidium@openttd.org>
2024-04-19 20:34:36 +01:00
..
ai
game
CMakeLists.txt Revert bbdbf9a: ScriptTimeMode was not the best solution for economy/calendar support 2024-03-23 21:17:40 +01:00
Doxyfile_AI.in
Doxyfile_GS.in
ai_changelog.hpp Revert bbdbf9a: ScriptTimeMode was not the best solution for economy/calendar support 2024-03-23 21:17:40 +01:00
doxygen_filter.awk
doxygen_filter.sh
game_changelog.hpp Revert bbdbf9a: ScriptTimeMode was not the best solution for economy/calendar support 2024-03-23 21:17:40 +01:00
script_accounting.cpp
script_accounting.hpp
script_admin.cpp Codechange: vendor the nlohmann-json library (#11290) 2023-09-13 16:11:34 +02:00
script_admin.hpp Codechange: keep how we convert string <-> JSON private (#11269) 2023-09-08 19:03:10 +02:00
script_airport.cpp Add: [Script] GetAirportNumHelipads (#12085) 2024-02-14 21:38:32 +01:00
script_airport.hpp Add: [Script] GetAirportNumHelipads (#12085) 2024-02-14 21:38:32 +01:00
script_asyncmode.cpp Fix: [Script] Properly store the previous AsyncMode state (#11587) 2023-12-14 21:29:44 +00:00
script_asyncmode.hpp Codechange: Add missing override specifiers. 2023-09-25 21:27:45 +01:00
script_base.cpp Codechange: Silence warnings about intentionally unused parameters. 2023-09-19 22:49:59 +02:00
script_base.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_basestation.cpp Fix: Add missing includes to timers from script implementation files (#11604) 2023-12-19 14:09:46 +00:00
script_basestation.hpp
script_bridge.cpp Codechange: Add base() method to StrongType to allow access to the base type without casting. (#11445) 2023-11-06 20:29:35 +00:00
script_bridge.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_bridgelist.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_bridgelist.hpp
script_cargo.cpp Change: Decouple and remove landscape-dependent cargo types. (#11719) 2024-02-04 10:16:08 +00:00
script_cargo.hpp Codechange: Rename TownEffect to TownAcceptanceEffect. 2024-02-02 20:37:49 +00:00
script_cargolist.cpp Change: Reorganise industry accept/produce arrays. (#10853) 2023-05-25 21:25:46 +01:00
script_cargolist.hpp
script_cargomonitor.cpp
script_cargomonitor.hpp
script_client.cpp Codechange: Add base() method to StrongType to allow access to the base type without casting. (#11445) 2023-11-06 20:29:35 +00:00
script_client.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_clientlist.cpp
script_clientlist.hpp
script_company.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_company.hpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_companymode.cpp
script_companymode.hpp
script_controller.cpp
script_controller.hpp
script_date.cpp Change: [Script] Use economy time for ScriptDate 2024-03-23 21:17:40 +01:00
script_date.hpp Change: [Script] Use economy time for ScriptDate 2024-03-23 21:17:40 +01:00
script_depotlist.cpp Codechange: Use locals for company/deity mode during script loops. (#11686) 2024-01-05 08:32:43 +00:00
script_depotlist.hpp
script_engine.cpp Codechange: Replace GroupStatistics' num_engines with std::map. (#11849) 2024-01-21 14:09:44 +00:00
script_engine.hpp
script_enginelist.cpp Codechange: Use locals for company/deity mode during script loops. (#11686) 2024-01-05 08:32:43 +00:00
script_enginelist.hpp
script_error.cpp Codechange: Replace old non-standard attributes with C++17/20 standard attributes. 2024-02-02 22:29:28 +01:00
script_error.hpp
script_event.cpp
script_event.hpp
script_event_types.cpp Codechange: Split CT_INVALID into CT_INVALID and INVALID_CARGO. 2024-01-09 18:56:05 +00:00
script_event_types.hpp Codechange: Replace mishmash of types for widget index with WidgetID. 2023-12-30 00:23:57 +00:00
script_execmode.cpp Fix #11585: Crash when cleaning AI/GS with nested AsyncMode. 2023-12-14 20:54:31 +00:00
script_execmode.hpp Codechange: Add missing override specifiers. 2023-09-25 21:27:45 +01:00
script_game.cpp
script_game.hpp
script_gamesettings.cpp
script_gamesettings.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_goal.cpp Codechange: use std::popcount instead of hand written loop 2024-01-19 06:48:55 +01:00
script_goal.hpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_group.cpp Fix #10405, a3dd750: [Script] Test engine and vehicle type validity for ScriptGroup::GetNumEngines (#11887) 2024-02-11 22:09:23 +01:00
script_group.hpp Fix #10405, a3dd750: [Script] Test engine and vehicle type validity for ScriptGroup::GetNumEngines (#11887) 2024-02-11 22:09:23 +01:00
script_grouplist.cpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_grouplist.hpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_includes.hpp.in
script_industry.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_industry.hpp Codechange: Split CT_INVALID into CT_INVALID and INVALID_CARGO. 2024-01-09 18:56:05 +00:00
script_industrylist.cpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_industrylist.hpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_industrytype.cpp Codechange: Use iterators and/or range-for on cargo related loops. 2023-10-19 17:03:25 +01:00
script_industrytype.hpp
script_industrytypelist.cpp
script_industrytypelist.hpp
script_info_docs.hpp Remove: [Script] random_deviation from setting description table (#12221) 2024-03-05 12:41:04 +01:00
script_infrastructure.cpp Codechange: Use existing functions in GetMonthlyInfrastructureCosts. (#11237) 2023-08-27 22:12:44 +02:00
script_infrastructure.hpp
script_league.cpp Codechange: use std::string without const as return 2023-07-03 18:08:03 +02:00
script_league.hpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_list.cpp Revert a2edf52: SQOpsLimiter does a more precise job (#11754) 2024-01-12 17:04:43 +01:00
script_list.hpp Fix 48b6b18: Increase MAX_VALUATE_OPS to match the previous limit 2024-01-30 19:15:54 +01:00
script_log.cpp Change: Allow opening multiple script debug windows by holding Ctrl. 2023-12-20 20:39:07 +00:00
script_log.hpp
script_log_types.hpp Add: Horizontal scroll for script debug log (#11597) 2023-12-20 22:50:03 +01:00
script_map.cpp
script_map.hpp Codechange: Add base() method to StrongType to allow access to the base type without casting. (#11445) 2023-11-06 20:29:35 +00:00
script_marine.cpp
script_marine.hpp
script_newgrf.cpp
script_newgrf.hpp
script_news.cpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_news.hpp
script_object.cpp Codechange: Replace C-style casts to size_t with static_cast. (#12455) 2024-04-19 20:34:36 +01:00
script_object.hpp Revert bbdbf9a: ScriptTimeMode was not the best solution for economy/calendar support 2024-03-23 21:17:40 +01:00
script_objecttype.cpp
script_objecttype.hpp
script_objecttypelist.cpp
script_objecttypelist.hpp
script_order.cpp Codechange: Redefine some cargo-related values in terms of CargoID instead of CargoType. 2024-01-09 18:56:05 +00:00
script_order.hpp
script_priorityqueue.cpp
script_priorityqueue.hpp
script_rail.cpp Codechange: Make command constant names consistent with command proc (#11920) 2024-01-29 13:41:36 +01:00
script_rail.hpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_railtypelist.cpp Codechange: Use locals for company/deity mode during script loops. (#11686) 2024-01-05 08:32:43 +00:00
script_railtypelist.hpp
script_road.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_road.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_roadtypelist.cpp Codechange: Use locals for company/deity mode during script loops. (#11686) 2024-01-05 08:32:43 +00:00
script_roadtypelist.hpp
script_sign.cpp
script_sign.hpp
script_signlist.cpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_signlist.hpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_station.cpp Codechange: switch our codebase to C++20 2024-01-17 00:25:08 +01:00
script_station.hpp
script_stationlist.cpp Codechange: Replace old non-standard attributes with C++17/20 standard attributes. 2024-02-02 22:29:28 +01:00
script_stationlist.hpp
script_story_page.cpp Fix #10439: [GS] Validate story page button colour, flags, cursor and vehicle type (#11892) 2024-01-28 00:29:10 +01:00
script_story_page.hpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_storypageelementlist.cpp Codechange: [Script] Use ScriptList::FillList() in more locations (#11762) 2024-01-12 21:19:08 +01:00
script_storypageelementlist.hpp
script_storypagelist.cpp Codechange: [Script] Use ScriptList::FillList() in more locations (#11762) 2024-01-12 21:19:08 +01:00
script_storypagelist.hpp
script_subsidy.cpp Fix: [Script] ScriptSubsidy::GetExpireDate should return an economy-date (#12372) 2024-03-28 23:21:20 +01:00
script_subsidy.hpp
script_subsidylist.cpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_subsidylist.hpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_testmode.cpp Fix #11585: Crash when cleaning AI/GS with nested AsyncMode. 2023-12-14 20:54:31 +00:00
script_testmode.hpp Codechange: Add missing override specifiers. 2023-09-25 21:27:45 +01:00
script_text.cpp Change: [Script] Match FormatString behaviour more closely 2024-03-09 12:15:03 +01:00
script_text.hpp Change: [Script] Match FormatString behaviour more closely 2024-03-09 12:15:03 +01:00
script_tile.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_tile.hpp
script_tilelist.cpp Fix #12347: Crash attempting to find catchment tiles of a station with no catchment area. (#12348) 2024-03-23 13:03:59 +01:00
script_tilelist.hpp Add: [Script] ScriptTileList_StationCoverage (#12015) 2024-02-06 20:22:18 +01:00
script_town.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_town.hpp Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
script_townlist.cpp Codechange: Rename TownEffect to TownAcceptanceEffect. 2024-02-02 20:37:49 +00:00
script_townlist.hpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_tunnel.cpp Codechange: Use std::tuple for slope functions with two return values 2024-03-08 18:08:55 +01:00
script_tunnel.hpp
script_types.hpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_vehicle.cpp Codechange: rename byte to uint8_t (#12308) 2024-03-16 23:59:32 +01:00
script_vehicle.hpp
script_vehiclelist.cpp Add: [Script] Optional filter parameter to more ScriptXXXList constructors (#11698) 2024-01-09 09:39:13 +01:00
script_vehiclelist.hpp Fix #11689: properly close DOXYGEN_API block 2024-01-05 19:17:08 +01:00
script_viewport.cpp
script_viewport.hpp
script_waypoint.cpp Codechange: switch our codebase to C++20 2024-01-17 00:25:08 +01:00
script_waypoint.hpp
script_waypointlist.cpp Codechange: switch our codebase to C++20 2024-01-17 00:25:08 +01:00
script_waypointlist.hpp
script_window.cpp
script_window.hpp.in Codechange: automatic adding of _t to (u)int types, and WChar to char32_t 2023-07-19 19:30:14 +02:00
squirrel_export.hpp.sq.in