1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00
Commit Graph

86 Commits

Author SHA1 Message Date
Aaron van Geffen
d425e0a8bb Remove const qualifier from constexpr statements 2023-06-24 11:45:26 +02:00
Michael Steenbeek
dd624f9bff Replace remaining usages of money16, money32 (#19469)
* Use money64 for ride prices and shop items

* Use money64 for park entrance fee

* Use money64 for gGuestInitialCash

* Use money64 for upkeep costs

* Use money64 for ride value

* Use money64 for marketing campaign cost

* Use money64 for object prices

* Use money64 for land prices

* Use money64 for guest expenditure

* Replace remaining occurrences of money32 with money64

* Update replays

* Bump network version

---------

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-03-02 21:55:42 +00:00
Hielke Morsink
ba0c8c135a Apply review changes 2023-01-18 23:41:59 +01:00
Hielke Morsink
86ffb01ddd Add comment and rename function pointer 2023-01-18 23:02:44 +01:00
Hielke Morsink
0762fcb601 Rename snake_case functions in OpenRCT2/util folder 2023-01-18 22:44:13 +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
b4480b344e Rename snake_case functions from localisation folder 2023-01-16 23:12:35 +00:00
Gymnasiast
a516dc507e Replace str_is_null_or_empty() with String::IsNullOrEmpty() 2023-01-08 16:19:18 +01:00
Gymnasiast
2f097e99c9 Replace strcasestr() with String::Contains() 2023-01-08 15:41:11 +01:00
Gymnasiast
aa01e21a55 Remove unused strcicmp() 2023-01-08 15:41:11 +01:00
Gymnasiast
6b922eea4a Remove unused safe_strtrunc() 2023-01-08 15:41:11 +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
Hielke Morsink
31dd4bf604 Use lower-case u integral suffix 2022-10-29 16:33:05 +02:00
Hielke Morsink
97a7fcc110 Consistently use literal suffix in upper-case 2022-10-29 16:28:53 +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
Hielke Morsink
45ac86062a Reduce octaves and add noise for 'jagged' edges 2022-04-28 20:54:57 +02:00
Silent
771637f24c Refactor filename_valid_characters into Platform::IsFilenameValid 2022-03-16 21:56:54 +01:00
Silent
28b0a39a73 Refactor CmdlineSprite.cpp and remove path_end_with_separator 2022-03-16 21:56:54 +01:00
Silent
159a76d7ec Refactor uses of safe_strcat_path 2022-03-10 20:18:17 +01:00
Silent
3773fa4cb0 Refactor uses of path_append_extension 2022-03-10 20:18:17 +01:00
Gymnasiast
060c430c64 Replace path_get_directory() 2022-02-26 18:26:24 +01:00
Gymnasiast
33edc59883 Replace path_remove_extension() 2022-02-26 18:26:24 +01:00
Gymnasiast
376c79408a Replace path_set_extension with Path::WithExtension() 2022-02-26 18:26:24 +01:00
Gymnasiast
49b414a40e Replace calls to path_get_filename() 2022-02-26 17:20:07 +01:00
Michael Steenbeek
5edc561715 Close #11437: Migrate old platform methods 2022-02-18 21:57:00 +01:00
Silent
8064ef288b Fix money overflow in scenario_entrance_fee_too_high_check and more 2022-01-31 23:06:54 +01:00
Duncan
98fa424e7b Merge pull request #16503 from Gymnasiast/refactor/replace-path-get-extension
Replace path_get_extension() with Path::GetExtension()
2022-01-25 08:35:38 +00:00
Gymnasiast
8ba0c7d1ee Replace path_get_extension() with Path::GetExtension() 2022-01-24 23:40:37 +01:00
Gymnasiast
fd0788fc7f Remove MAX_ZLIB_REALLOC 2022-01-24 23:12:29 +01:00
Gymnasiast
615c07977d Remove util_zlib_deflate() 2022-01-24 23:12:22 +01:00
Gymnasiast
93f3e94b3f Remove util_zlib_inflate() 2022-01-24 23:12:14 +01:00
Gymnasiast
0a46a960de Remove utf8_is_bom() 2022-01-24 23:12:08 +01:00
Hielke Morsink
76b5479bbb Fix undefined use of cctype functions 2021-11-06 16:27:54 +01:00
Michael Steenbeek
26d1186240 Merge pull request #15493 from Broxzier/refactor/minor-cleanups
Minor code cleanups
2021-09-30 15:03:33 +02:00
Duncan
e01c9a3afa Stream changes from NSF (#15446)
* Bring over NSF changes to stream classes

* Add orca stream to project files

* Bring over util changes as well.

* Add const to util and fix util ungzip

* Add const and apply review comments

* Apply review comments
2021-09-30 13:02:54 +01:00
Hielke Morsink
94144bcd89 Remove some dead code
Reported by clang
clang-analyzer-deadcode.DeadStores
2021-09-30 10:40:32 +02:00
Hielke Morsink
4b4b3333d6 Remove unnecessary else blocks 2021-09-16 18:31:12 +02:00
Gymnasiast
6202ecb281 Make util_zlib_inflate() take const 2021-09-12 18:36:50 +02:00
Ted John
70d9c1438e Change most things and formatting to money64 2021-08-01 15:14:42 +02:00
Duncan
7440d7eb2b Fix #13567: Added ability for peeps to stop eating certain food constanly (#13592)
* Fix #13567: Cure guests of severe gluttony

Incorrect assumption that bitscanforward itertated over 64 bits meant that food that was previously within the ExtraItemFlags would never get removed from the peeps inventory. bitscanforward function has been replaced with a 64bit version

* Bump network version
2020-12-17 17:45:40 +00:00
Duncan
e23c1cded7 Fix logical sort 2020-10-09 20:59:43 +02:00
Richard Fine
d21da12f9f Fix 11414: ‘Possible misuse of comma operator’ warnings (#12919)
Fix the ‘possible misuse of comma operator’ warnings reported by XCode - the two original ones reported in #11414, plus one more in Util.cpp.
2020-09-13 17:43:59 +01:00
Aaron van Geffen
7b5087f057 Update copyright year to 2020 2020-07-21 15:04:34 +02:00
frutiemax
bee0b4b82d Part of #11159: Optimize util_zlib_deflate return (#12111) 2020-07-04 09:21:50 -03:00
Michał Janiszewski
7f8a65c095 Make strlogicalcmp case insensitive 2020-05-20 08:35:41 +02:00
Michał Janiszewski
16d8c64cea Improve strlogicalcmp for strings of unequal lengths
This version actually works and doesn't overrun provided buffers
2020-05-20 08:33:25 +02:00
Tulio Leao
116bcb5ccb Use named casts on openrct2/(util|windows|scenario|title) (#11146) 2020-04-17 19:45:19 +02:00
Tulio Leao
9123b597a9 Use constexpr on openrct2/* 2019-10-29 18:44:14 -03:00
Matt
c6ea47c631 Make util_rand thread safe 2019-05-12 11:32:33 +02:00
Matt
6aa0e74d3e Fix util_rand only returning 15 bit values. 2019-05-11 22:37:19 +02:00