ACGNnsj
d3ea4bfbc8
Remove Duplicated Preprocessor Macro Definition ( #19376 )
...
* Update openrct2.common.props
Remove duplicated preprocessor macro definition of _USE_MATH_DEFINES which defined in src/openrct2/common.h and SDL2/SDL_stdinc.h
* Remove the definition of _USE_MATH_DEFINES from 'common.h'
2023-02-14 08:19:58 +00: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
Gymnasiast
41cc3fd563
Remove now-unused _strdup() define
2023-01-08 15:41:10 +01: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
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
Michael Steenbeek
a0dd6a3aa6
Fix #18087 : gCash clamped to 32-bit integer every transaction
2022-09-28 12:20:44 +02:00
Michael Steenbeek
a07daae770
Remove some unused symbols ( #17808 )
2022-08-13 21:24:15 +00:00
Gymnasiast
d3fd31c611
Rename rct_string_id to StringId
2022-07-31 22:30:13 +02:00
Tulio Leao
67c14ada3c
Add int32_t overload for ToMoney32FromGBP
2022-04-01 07:32:03 -03: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
ζeh Matt
6af14a1e69
Remove SPRITE_INDEX_NULL
2022-02-17 18:44:50 +02:00
Michael Steenbeek
9f74c7081b
Create definitions for u8string and u8string_view
2022-01-25 16:41:45 +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
ζ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
Gymnasiast
114eff46f0
Remove static attribute from ToMoney64/32/16
2021-08-01 15:14:43 +02:00
Gymnasiast
2b78ee7b26
Create other variants of ToMoney#
2021-08-01 15:14:43 +02:00
Ted John
70d9c1438e
Change most things and formatting to money64
2021-08-01 15:14:42 +02:00
Michał Janiszewski
ac6e4fc0d6
Move SPRITE_INDEX_NULL, MAX_SPRITES to their new homes
2021-02-25 10:56:27 +01:00
Gymnasiast
9a3d9c512e
Move register definition to TestPaint
2021-01-17 22:14:55 +01:00
Mathias Gibbens
b1e5a11bf3
Several more spelling fixes ( #13752 )
...
Signed-off-by: Mathias Gibbens <mathias@calenhad.com >
Co-authored-by: Mathias Gibbens <mathias@calenhad.com >
2021-01-10 18:23:35 +00:00
Matt
0dc43d66e4
Remove the use of INTERFACE macro and macro its self
2020-08-05 16:30:44 +02:00
Matt
30376085cf
Include missing headers
2020-08-05 16:29:29 +02:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
Michael Steenbeek
d7637cd70f
Replace many C-style casts ( #11720 )
2020-05-11 14:32:56 +02:00
Tulio Leao
c17127f65b
Use named casts on openrct2 root folder ( #11139 )
2020-04-17 21:36:25 +02:00
Gymnasiast
1e6efa6eb4
Extend BannerIndex to 16 bits
2020-02-15 10:37:34 +01:00
Michał Janiszewski
2340206b34
Place constexpr functions in anonymous namespace ( #10651 )
2020-02-06 08:50:10 +01:00
Tulio Leao
aa02a8c7ce
Throw exception if floor2 and ceil2 are misused
2019-12-03 23:13:12 -03:00
Tulio Leao
c4089acd63
Removed parentheses for improved readability
2019-12-01 22:45:16 -03:00
Tulio Leao
1e67c3bff8
Make floor2 and ceil2 constexpr functions
2019-11-30 08:41:45 -03:00
Ted John
a1d9e52046
Rename ToUtf16 to ToWideChar
...
This is more correct as wchar_t size can differ, for example Linux typically uses 32 bits for wchar_t where as Windows uses 16 bits.
2019-07-22 23:44:03 +01:00
Ted John
15cb3e1889
Remove unnecessary new line characters from log calls ( #9237 )
2019-05-12 13:48:56 +02:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Tom Lankhorst
4c015edaf6
Templatise rorN and rolN with N in {8, 16, 32, 64}
2019-01-28 10:55:24 +01:00
Bart Ribbers
8e6eb08275
Fix compilation on musl ( #8067 )
2018-10-09 20:42:02 +02:00
clang-format
d787872cbe
Indent preprocessor directives
2018-07-23 16:00:23 +02:00
clang-format
c57bbca827
clang-format root
2018-07-23 16:00:14 +02:00
Michael Steenbeek
16f5c92bde
Fix copy-paste error
2018-06-20 17:55:34 +02:00
Michael Steenbeek
1b08fb4e69
Replace our own integer types with standard ones
2018-06-20 17:30:40 +02:00
Hielke Morsink
0cf256ac9e
Ready copyright notice for clang-format
...
Clang-format sees the text behind `#pragma region` as code and formats it. Instead of stating the copyright and date there, it's now in the comment block right below it. The text "Copyright" is left in the `#pragma region` line, as clang-format sees it as a single identifier.
I took the opportunity to normalize the dates, and add the copyright notice to the source files where it was missing them (except for third-party and the generated resources.h file).
2018-06-15 14:07:34 +02:00
Hielke Morsink
aad1e69d7e
Add parentheses to macro arguments ( #7686 )
...
This adds parentheses around macro arguments that are either negative or used for calculations inside the macro itself. Doing this avoids getting errors in code that may look right.
2018-06-15 10:54:05 +02:00
Hielke Morsink
6b22a9d38b
Merge pull request #7586 from Broxzier/refactor/banner-ride-index
...
Banner code cleanups
2018-06-13 21:48:04 +02:00
pkubaj
fae367ccf9
Fix compilation with FreeBSD ( #7668 )
2018-06-12 20:46:34 +01:00
Hielke Morsink
7355b497a1
Use new banner index type
...
BannerIndex is defined in common.h (like some other types such as money32 and rct_string_id), so that banner.h wouldn't have to be includede everywhere. Later on, it may be nicer to have a custom types file instead of putting them all in common.h.
2018-06-11 13:29:41 +02:00
Hielke Morsink
30063984e6
Delete unused function arguments or mark them so ( #7426 )
...
This aims to make future refactoring easier. The arguments are removed where possible, but kept and marked with C++17's [[maybe_unused]] where they could not be removed (e.g. when they are used as a callback, rather than called directly).
I've skipped the rides/<category>/* and peep/* source files, because the rides source files are mostly generated and have a ton of unused variables, and the peep source files are being refactored.
I've also skipped most of window/* source files, because most of the functions are used as callbacks and will be bulk-renamed at some point.
2018-04-20 13:56:37 +02:00
Michał Janiszewski
2545d01db4
Use libc++-provided strndup on Android
2018-03-21 16:05:00 +01:00
LRFLEW
d4cfad8ab2
Fix 'different language linkage' error with Xcode
2018-03-18 23:29:13 +01:00