Duncan
859b071ddc
Rename classes with snakes OpenRCT2/A*-F* ( #19215 )
...
* Rename classes with snakes OpenRCT2/A*-F*
* Clang format files
2023-01-19 08:16:44 +00:00
Michael Steenbeek
12874f2af7
Replace format_string(4) with OpenRCT2::FormatStringLegacy() ( #19190 )
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2023-01-17 21:56:30 +01:00
Hielke Morsink
6b7dc8fcdb
Rename snake_case functions in openrct2/src folder
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2023-01-17 13:24:51 +01:00
Michael Steenbeek
bf5f7e8e71
Rename format_string(2) and is_user_string_id() ( #19178 )
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2023-01-17 08:59:07 +00:00
Michael Steenbeek
b4480b344e
Rename snake_case functions from localisation folder
2023-01-16 23:12:35 +00:00
Michael Steenbeek
18d9e72173
Change _GBP to money64, migrate a few usages to money64 as well
2023-01-08 15:10:22 +01:00
James103
73738bbdc8
Replace 2022 with 2023 in copyright headers
...
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Michael Steenbeek
96284123e7
Reduce usage of gCommonStringFormatBuffer
2022-11-14 23:48:34 +00:00
Hielke Morsink
abac080d3e
Rename public general config data members
2022-10-16 21:46:01 +02:00
73
b9e677945d
Replace 20XX with 2022 ( #18158 )
...
* Replace 2020 with 2022
Replace all 2020 headers with 2022
* replace other years with 2022
add missing years
2022-10-01 08:42:14 +01:00
ltsSmitty
e0e7227dae
Fix sprintf deprecation error on MacOS build
...
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com >
2022-08-09 20:31:15 +02:00
Gymnasiast
d3fd31c611
Rename rct_string_id to StringId
2022-07-31 22:30:13 +02:00
Tulio Leao
e63432a416
Add ToGBP function to convert non literals to money32
2022-03-31 17:54:52 -03:00
Geoff Banh
85baa6f7ca
Fix #14093 : Replace MONEY macro with user defined literal
2022-03-29 07:23:35 -03:00
Hielke Morsink
9dd20ec619
Improve array formatting
...
For most of these cases, adding a trailing comma to the array block makes clang-format put each item on a new line, and clang-format exception blocks could be reduced where clang-format does not handle them properly.
2021-10-17 18:21:45 +02:00
Hielke Morsink
4b4b3333d6
Remove unnecessary else blocks
2021-09-16 18:31:12 +02:00
Ted John
b6a688e540
Refactor format tokens
2020-11-27 18:54:57 +00:00
Ted John
2f7c1aab14
Start eradicating old format codes
2020-11-27 18:54:56 +00:00
Bryan DiLaura
894be65b6d
Closes #12415 : Refactor CURRENCY_TYPE to strong enum ( #13276 )
...
* closes #12415 CURRENCY_TYPE enum refactor
* reverses unintended change in Linux.cpp
* closes #12415 CurrencyType strong enum
2020-10-25 01:33:06 -03:00
Duncan
feb188ecb2
Remove incorrect variable from interval names ( #13175 )
...
Not sure why this has ended up in the interval names as it is not a rct_string_id. Luckily nothing at present was accessing this.
2020-10-12 21:35:08 -03:00
Duncan
84c9ff833a
Move formatter to separate file. Rework GetMeasurement ( #13131 )
...
* Move formatter to seperate file. Rework GetMeasurement
* Add Formatter source files to Xcode project
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net >
2020-10-09 08:02:07 -03:00
Duncan
3c8adb1fc1
Remove gMapTooltip format args global ( #12971 )
...
Fix mistake
2020-09-28 21:45:28 -03:00
Matt Thomson
a8f8f06e2d
Fix #12402 : Refactor MEASUREMENT_FORMAT to use strong enum ( #12642 )
...
* Fix #12402 : Refactor MEASUREMENT_FORMAT to use strong enum
* Remove redundant default branches
Co-authored-by: Matt Thomson <matt-thomson@users.noreply.github.com >
2020-08-13 21:51:28 +01:00
Matt Thomson
150100d89f
Fix #12416 : Refactor CURRENCY_AFFIX to use strong enum
2020-08-04 21:35:59 +01:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
Michael Steenbeek
9ef8d6da42
Convert most remaining C-style casts to C++-style ones ( #11867 )
2020-06-07 23:18:11 +02:00
Michael Steenbeek
8660bbe9d7
Fix #1013 : negative length in Ride window ( #11651 )
2020-05-06 11:32:10 +02:00
Gymnasiast
e67ebed697
Remove some Americanisms
2020-04-26 11:07:19 +02:00
Michał Janiszewski
2323cc1596
Use named casts instead of old-style casts
...
Change prepared with clang-tidy and google-readability-casting check
2020-04-22 17:09:29 +02:00
duncanspumpkin
0fd793504e
Additional validation
2020-03-31 19:13:13 +01:00
duncanspumpkin
6560de0705
Potential fix #11174 , #11175 . Use Strnlen
...
Unsure if this will fix the issue as not reproducable. It is possible
that the pointer passed to this function is bad
2020-03-31 19:11:17 +01:00
Ted John
5af3bbf971
Fix compile errors
2019-07-29 20:01:49 +01:00
Ted John
d28799ef18
Remove user strings
2019-07-29 20:01:37 +01:00
Ted John
40d49b93d3
Do not use user strings for peep names
2019-07-29 19:18:16 +01:00
Ted John
5733d666b3
Do not store park name as a user string
2019-07-21 11:33:15 +02:00
Michael Steenbeek
b2535ba35a
Merge pull request #9117 from Gymnasiast/fix/7729
...
Fix #7729 : Money Input Prompt breaks on certain values
2019-04-24 19:41:24 +02:00
Gymnasiast
61a402b913
Fix formatting
2019-04-20 19:19:33 +02:00
Gymnasiast
28ad78f204
Allow entry of numbers up to 10 million in string_to_money
2019-04-20 18:42:06 +02:00
Gymnasiast
abf416a5a9
Fix string_to_money rounding errors in 4.10, 5.10...
2019-04-20 18:37:50 +02:00
Matt
37c3809744
Implement partial multicore rendering
2019-03-31 15:50:55 +02:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Matt
57eccef347
Move format_readable_size and format_readable_speed into Localisation
2019-02-07 18:50:58 +01:00
Michał Janiszewski
c42ded66b2
Fix #8674 : Negative values not displaying correctly
2019-02-06 22:18:58 +01:00
Michał Janiszewski
8a395e3706
Fix misaligned access ( #8665 )
...
Platforms like ARM are very sensitive to unaligned access. This change
makes sure the addresses obey the C++ standard and are properly aligned.
2019-02-04 23:15:14 +01:00
ζeh Matt
7d19a5bc77
Refactor memcpy to std::memcpy and memset to std::memset ( #8408 )
2018-12-15 22:23:31 +01:00
Hielke Morsink
354d973a48
Use std::size instead of Util::CountOf
2018-11-23 21:59:08 +01:00
Felix Pelletier
6ba052e618
Make some arguments to format_string(...) and friends const
2018-11-01 09:25:04 +01:00
Gymnasiast
6fc86d5766
Fix #7872 : CJK tooltips are often cut off
2018-08-13 21:41:10 +02:00
Linus Unnebäck
fd07be587a
Remove Math::Clamp in favour of std::clamp
2018-08-12 16:47:12 +01:00
clang-format
d787872cbe
Indent preprocessor directives
2018-07-23 16:00:23 +02:00