1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00
Commit Graph

124 Commits

Author SHA1 Message Date
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
Ted John
b7b8816db7 Add plugin hook for map save 2022-03-07 21:40:48 +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
Michael Steenbeek
9f74c7081b Create definitions for u8string and u8string_view 2022-01-25 16:41:45 +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
Gymnasiast
7bab05c66a Remove unused writeentirefile() 2022-01-08 19:07:48 +01:00
Michał Janiszewski
7b0e6ad0b6 Reformat with clang-format-12 from updated CI image 2021-12-12 17:48:52 +01:00
Hielke Morsink
76b5479bbb Fix undefined use of cctype functions 2021-11-06 16:27:54 +01:00
Michał Janiszewski
1b4875e528 Extract math-related functions from common.h to Math.hpp
Saves wide inclusion of <stdexcept> header, which pulls in <string>
2021-10-09 21:43:06 +02: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
ζeh Matt
b733e97bfa Remove numerics from common.h and use it as needed 2021-09-11 20:21:08 +03:00
Hielke Morsink
15d3a4a9da Update more include guards (#15254) 2021-08-21 12:55:28 +02:00
Hielke Morsink
dd2467d805 Update include guards
- Update from C-style to pragma once
- Add missing include guard to ui.h
2021-08-21 09:43:26 +02:00
Ted John
70d9c1438e Change most things and formatting to money64 2021-08-01 15:14:42 +02:00
ζeh Matt
acf71315b5 Cleanup variables usage and initialize them 2021-01-06 22:29:40 +01: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
Vinicius Sa
ca8fa55fdb Use EnumValue to get the underlying value of an enum
Applied to objects of the enum class PeepActionSpriteType when they are
used as arrays subscripts.
2020-09-29 11:15:07 -03:00
Łukasz Pękalski
065da23b3b Close #12437, refactor: RIDE_MODE_* to strong enums (#12833)
* partial refactor: RIDE_MODE_* to strong enums

* Close #12437, refactor: RIDE_MODE_* to strong enums

* chore: code formatting

* refactor: RideMode, change enum names to CamelCase

and resolve casting order.

* chore: refactor due to code formatting

* Close #12437, refactor: RIDE_MODE_* to strong enums

Resolved comments

* chore: Formatting correction.

* Use EnumsToFlags constexpr

* refactor: resolved comments

added newline at the end of file

* refactor: Change case stack to default in Switch

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2020-09-28 14:09:59 +01: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
Filip Gawin
6833da77e3 Simplify boolean expresions 2019-05-10 22:00:38 +02:00
Michael Steenbeek
cf913d1419 Remove two unused functions 2019-03-25 15:56:40 +01:00
Gymnasiast
262a9f29e8 Fix formatting 2019-03-24 22:24:40 +01:00
ζeh Matt
184d95c720 Fix #8947: Detection of AVX2 support 2019-03-24 21:53:54 +01:00