Jonathan G Rennison
|
03c3050c43
|
Fix too small string buffer in FormatUnitWeightRatio
|
2023-08-27 00:49:40 +01:00 |
|
Rubidium
|
6635f809dd
|
Fix #11181: attempting to read string as int triggers assertion
|
2023-08-20 23:57:42 +02:00 |
|
Daniel Hill
|
924b2ab9ec
|
Add an optional "(City)" in Viewport labels
|
2023-07-30 22:06:51 +01:00 |
|
Jonathan G Rennison
|
4c88256183
|
De-duplicate string IDs used for viewport town labels
|
2023-07-30 21:47:03 +01:00 |
|
Jonathan G Rennison
|
ebcf8b336c
|
Add SET_COLOUR string code
|
2023-07-30 21:47:03 +01:00 |
|
Rubidium
|
eaae0bb5e7
|
Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
|
2023-07-19 19:30:14 +02:00 |
|
Rubidium
|
da21772f2d
|
Fix #11108, e2f583a : missing argument for SCC_CARGO_SHORT formatting
(cherry picked from commit 968de827d6 )
|
2023-07-07 17:43:02 +01:00 |
|
Rubidium
|
968de827d6
|
Fix #11108, e2f583a : missing argument for SCC_CARGO_SHORT formatting
|
2023-07-06 19:46:54 +02:00 |
|
Rubidium
|
2ec4ea2b99
|
Codechange: use the string temporaries for game script strings
|
2023-07-03 18:08:03 +02:00 |
|
Rubidium
|
3e488465f8
|
Codechange: allow string temporaries in a StringParameter
|
2023-07-03 18:08:03 +02:00 |
|
Rubidium
|
b2edf82b69
|
Cleanup: remove unneeded CopyOutDParam version with StringID
|
2023-07-03 06:56:08 +02:00 |
|
Rubidium
|
4654b2b0aa
|
Codechange: separate integer and string usage in StringParameters
|
2023-07-03 06:56:08 +02:00 |
|
Rubidium
|
7ed90a859f
|
Codechange: function to check whether string parameters have changed since the backup
|
2023-07-03 00:00:12 +02:00 |
|
Rubidium
|
05ef3f0998
|
Cleanup: remove old backup/restore of string parameters
|
2023-07-02 22:31:01 +02:00 |
|
Rubidium
|
2687704afc
|
Codechange: introduce new type and functions for StringParameter backups
|
2023-07-02 22:31:01 +02:00 |
|
Jonathan G Rennison
|
d09b504bc5
|
Merge branch 'master' into jgrpp
# Conflicts:
# .github/workflows/ci-build.yml
# .github/workflows/release-linux.yml
# .github/workflows/release-macos.yml
# .github/workflows/release-source.yml
# .github/workflows/release.yml
# CMakeLists.txt
# COMPILING.md
# src/ai/ai_core.cpp
# src/ai/ai_gui.cpp
# src/bridge_gui.cpp
# src/company_gui.cpp
# src/console_cmds.cpp
# src/core/CMakeLists.txt
# src/core/smallmap_type.hpp
# src/disaster_vehicle.h
# src/effectvehicle_base.h
# src/fontcache.cpp
# src/game/game_core.cpp
# src/game/game_gui.cpp
# src/gamelog.cpp
# src/gamelog_internal.h
# src/group_gui.cpp
# src/linkgraph/linkgraph.h
# src/misc.cpp
# src/network/core/config.h
# src/network/core/udp.cpp
# src/network/network_chat_gui.cpp
# src/network/network_content_gui.cpp
# src/network/network_gui.cpp
# src/newgrf.cpp
# src/newgrf_gui.cpp
# src/newgrf_profiling.cpp
# src/newgrf_profiling.h
# src/object_gui.cpp
# src/openttd.cpp
# src/openttd.h
# src/order_gui.cpp
# src/os/windows/font_win32.cpp
# src/rail_gui.cpp
# src/road.cpp
# src/road_gui.cpp
# src/saveload/afterload.cpp
# src/saveload/saveload.h
# src/script/api/script_controller.cpp
# src/script/api/script_roadtypelist.cpp
# src/script/script_config.cpp
# src/script/script_config.hpp
# src/script/script_instance.cpp
# src/script/script_scanner.cpp
# src/script/squirrel.cpp
# src/script/squirrel_helper.hpp
# src/settings_gui.cpp
# src/settings_internal.h
# src/settings_type.h
# src/table/settings/network_private_settings.ini
# src/timetable_gui.cpp
# src/vehicle.cpp
# src/vehicle_base.h
# src/window_gui.h
|
2023-07-01 02:42:51 +01:00 |
|
PeterN
|
c3fbe7bea8
|
Cleanup: Use FS enum instead of magic numbers. (#11088)
|
2023-06-30 20:11:09 +00:00 |
|
Rubidium
|
75a22a1c83
|
Codechange: move from GetIntXY to GetNextParameter<XYY>
|
2023-06-27 12:34:40 +02:00 |
|
Rubidium
|
e7937efb01
|
Codechange: add clearer named function to get the next (string) parameter
|
2023-06-27 12:34:40 +02:00 |
|
Rubidium
|
4e9a871718
|
Codechange: merge multiple string parameter arrays to single array of structs
|
2023-06-21 05:46:11 +02:00 |
|
Rubidium
|
fa8c50758b
|
Codechange: replace memcpy when copying DParams
|
2023-06-21 05:46:11 +02:00 |
|
Rubidium
|
7a785a4224
|
Codechange: simplify StringParameters now type cannot be nullptr
|
2023-06-20 22:25:25 +02:00 |
|
Rubidium
|
428333aeba
|
Codechange: let AllocatedStringParameters allocated types too
|
2023-06-20 22:25:25 +02:00 |
|
Rubidium
|
9f3254b72a
|
Fix b1fb209 : build failure due to removed parameter
|
2023-06-20 21:32:04 +02:00 |
|
glx22
|
b1fb209bed
|
Add: {COLOUR} control code to allow colour changes at runtime
|
2023-06-20 19:05:10 +02:00 |
|
Rubidium
|
88138c55f8
|
Codechange: make offset protected and guard against invalid offsets
|
2023-06-20 17:37:49 +02:00 |
|
Rubidium
|
9c3c90effa
|
Codechange: rename ClearTypeInformation so it can be used for preparing for the next run
|
2023-06-20 17:37:49 +02:00 |
|
Rubidium
|
01abcdfcac
|
Codechange: make StringParameters#next_type only writable from outside the class
|
2023-06-20 17:37:49 +02:00 |
|
Rubidium
|
3e8f8c55c2
|
Codechange: make creating temporary StringParameters easier
|
2023-06-20 17:37:24 +02:00 |
|
Rubidium
|
381e8b69d2
|
Codechange: make size and offset size_t
|
2023-06-18 09:50:11 +02:00 |
|
Rubidium
|
4e6733cc6e
|
Codechange: use args.GetParam(offset) over *args.GetPointerToOffset(offset)
|
2023-06-18 07:10:10 +02:00 |
|
Rubidium
|
e404ba0631
|
Codechange: generify GetRemainingParameters to allow custom offsets
|
2023-06-18 07:09:59 +02:00 |
|
Rubidium
|
ad048b143a
|
Codechange: move implementation of Set/GetDParam to strings.cpp
|
2023-06-17 12:14:11 +02:00 |
|
Rubidium
|
dd53a738bb
|
Codechange: automatically set/check the correct type for string parameters/genders
|
2023-06-17 11:02:31 +02:00 |
|
Rubidium
|
0a5e58451b
|
Codechange: pass string parameters by reference
|
2023-06-14 06:14:08 +02:00 |
|
Rubidium
|
e332810231
|
Codechange: pass zero length arguments for {STRING}, instead of the remaining arguments
|
2023-06-13 23:53:13 +02:00 |
|
Rubidium
|
aba0d27a28
|
Codechange: use StringParameters for remapping the NewGRF string control codes
|
2023-06-13 22:11:21 +02:00 |
|
Rubidium
|
1146904d45
|
Fix: when a string consumes more parameters than allowed, nullptr is attempted to be formatted
|
2023-06-13 20:58:45 +02:00 |
|
Rubidium
|
6c6f365d2f
|
Codechange: remove offset parameter for copying DParams in and out
|
2023-06-11 17:03:31 +02:00 |
|
Rubidium
|
66a984afd7
|
Codechange: rename function to better describe its functionality
|
2023-06-09 06:41:52 +02:00 |
|
Rubidium
|
13cdf5fffa
|
Codechange: use std::filesystem::path for the language file's path
|
2023-06-08 23:20:28 +02:00 |
|
Jonathan G Rennison
|
02549c5224
|
Merge branch 'master' into jgrpp
# Conflicts:
# cmake/CompileFlags.cmake
# src/cargomonitor.cpp
# src/core/CMakeLists.txt
# src/economy.cpp
# src/landscape.cpp
# src/linkgraph/flowmapper.cpp
# src/linkgraph/linkgraph_gui.cpp
# src/linkgraph/linkgraphschedule.cpp
# src/misc_gui.cpp
# src/newgrf_generic.cpp
# src/newgrf_storage.cpp
# src/rail_gui.cpp
# src/saveload/afterload.cpp
# src/saveload/station_sl.cpp
# src/script/script_gui.cpp
# src/station_cmd.cpp
# src/station_gui.cpp
# src/string_func.h
# src/terraform_cmd.cpp
|
2023-06-08 00:01:38 +01:00 |
|
Rubidium
|
b2a8d8aea4
|
Codechange: use std::string for Windows' ISO code mangling
|
2023-06-07 08:27:18 +02:00 |
|
Rubidium
|
edb21620ea
|
Cleanup: remove unneeded checks on remaining buffer size
|
2023-06-05 23:26:12 +02:00 |
|
Rubidium
|
affceea0ae
|
Codechange: switch StringBuilder to use std::string as backend
|
2023-06-05 23:26:12 +02:00 |
|
Jonathan G Rennison
|
bc07331056
|
Remove src/3rdparty/optional
|
2023-06-05 21:26:41 +01:00 |
|
Jonathan G Rennison
|
ffb4548f1b
|
Fix std::optional related compilation errors on some platforms
|
2023-06-05 20:04:13 +01:00 |
|
Rubidium
|
14915526ad
|
Cleanup: remove stre-style GetString
|
2023-06-05 11:23:31 +02:00 |
|
Rubidium
|
4e39a58c59
|
Codechange: let town name generation use StringBuilder
|
2023-06-04 21:42:59 +02:00 |
|
rubidium42
|
bfcb027cb9
|
Fix 2dffa7d : fmt::format_to copies the iterator, so some text does not remain during formatting (#10940)
|
2023-06-04 19:55:47 +02:00 |
|