4983 Commits

Author SHA1 Message Date
Stephen E. Baker
c81ba258cf Bump vcpkg for May 2025 2025-05-23 10:52:19 -04:00
Toby Lane
4e69c2d4e1 Fix movies playing when levels failed to load 2025-05-19 18:16:27 +01:00
Toby Lane
9c2d94e471 Localise map loading errors 2025-05-19 18:16:27 +01:00
Stephen E. Baker
4091521e2a Merge pull request #2869 from Alberth289346/fix-comfy-chair-moods
Fix moods of the comfortable chair.
2025-05-17 19:03:46 -04:00
Stephen E. Baker
8397921690 Merge pull request #2868 from TheCycoONE/remove_clang_suppress
Replace clang::suppress attribute
2025-05-17 19:02:48 -04:00
Alberth
1a7589bdd7 Fix moods of the comfortable chair. 2025-05-17 22:14:17 +02:00
Stephen E. Baker
1acf2cd59f Replace clang::suppress attribute
NOLINT comment also works for clang-tidy and doesn't trigger a
warning in other compilers. Hopefully in the future compilers
adopt the attribute or make it easier to suppress, but for now
the comment is a better experience.
2025-05-17 15:45:21 -04:00
Stephen E. Baker
78a0493048 Merge pull request #2859 from TheCycoONE/map_test
Add test for setCellFlags
2025-05-17 08:16:21 -04:00
Stephen E. Baker
33520110de Convert remaining owned Lua state pointers to unique_ptr 2025-05-17 06:31:21 -04:00
Stephen E. Baker
bb5f323963 CTest fixes
* Allow ctest to run from build dir
* Remove extra libs linked to ctest
* Prevent test from running twice

Manually adding tests isn't useful as we have catch_discover_tests which
does the same thing on a granular basis for catch2
2025-05-16 21:47:51 -04:00
Stephen E. Baker
9263bce95a Extra debug information on appveyor test failure 2025-05-16 21:47:51 -04:00
Stephen E. Baker
32fc85c569 Add test for setCellFlags
Nearly all the library linkages were wrong. The rule is to link the library to the target where it is used. PRIVATE if it is in cpp code only, INTERFACE if it is in header code only, and PUBLIC if it is in both. Fixing this was required to get the test to link properly.

strings.h was invalid as a header. It could have been fixed by marking all the definitions inline, but I chose to put them in a new file instead.
2025-05-16 21:47:51 -04:00
Stephen E. Baker
0a55bc9b5e Merge pull request #2863 from Alberth289346/add-cast-remover-mood-positions
Add mood position of the cast remover animations
2025-05-16 20:09:58 -04:00
Stephen E. Baker
8ac4f21038 Merge pull request #2861 from Alberth289346/fix-animview-print-mood-positions
Use %zd for printing a size_t value.
2025-05-15 22:29:56 -04:00
lewri
d707a3d914 Add surgeon screen markers 2025-05-15 21:28:30 +01:00
Alberth
2162a9da48 Use %zd for printing a size_t value. 2025-05-15 20:56:14 +02:00
Alberth
6c6a117f85 Add mood position of the cast remover animations 2025-05-15 20:48:23 +02:00
Alberth289346
13d5669561 Fix swingdoor mood (#2860) 2025-05-15 19:16:22 +01:00
Stephen E. Baker
b46f12c99f Merge pull request #2854 from TheCycoONE/clang-tidy-bump
Bump clang-format and clang-tidy for linux pipeline
2025-05-11 22:56:32 -04:00
Stephen E. Baker
af7056e0c9 Enforce bugprone-assignment-in-if-condition 2025-05-11 17:58:08 -04:00
Stephen E. Baker
2759362606 Eliminate odd int to pointer conversion for sound indexes in lua 2025-05-10 23:43:31 -04:00
Stephen E. Baker
920cd3bb7e Eliminate endl usage
Reenable -performance-avoid-endl clang-tidy check.
2025-05-10 22:57:03 -04:00
Stephen E. Baker
e3c7ea7ce9 Bump clang-format and clang-tidy for linux pipeline
Use version 20 which is the current latest.

Fix bug clang-tidy found if reading the save file fails.
Format code per clang-format-20

I surpressed all new warnings in clang-tidy but we will probably want to
enable and fix some of them.

run-clang-tidy is used instead of calling clang-tidy directly in order
to automatically pull all source files.
2025-05-10 21:14:56 -04:00
Artem Argus
51881eaf90 General Diagnosis. Crash fixes on doctor change (#2844)
* General Diagnosis crash fixes #1328

Co-authored-by: Alberth289346 <alberth289346@gmail.com>
2025-05-10 13:05:55 -04:00
lewri
185599adac Add screen markers
Surgeon screen markers to be separate
2025-05-09 21:21:31 +01:00
Alberth289346
ac54375594 Add moods for crash trolley animations. (#2855) 2025-05-09 07:21:16 +01:00
lewri
7bb3ad85e4 Add Operating Table Markers
Add staff markers for operating table
2025-05-08 21:26:52 +01:00
Stephen E. Baker
f70b21e157 Merge pull request #2852 from TheCycoONE/includes
Include what you use
2025-05-07 22:02:44 -04:00
Stephen E. Baker
de7f8bb6d9 Include what you use
Applied IWYU recommendations (mostly).

I deviated on libraries, it always wanted me to include the inner headers
for SDL, ffmpeg, etc. but the definitions were normally expected to be
exported by a top level header. wxWidgets was particularly problematic
since it wanted me to use the gtk specific includes instead of the
generic ones.

I do not intend to add include-what-you-use to the CI/CD pipelines at
this time but some pragmas were added to the code to make it report
somewhat cleaner.
2025-05-07 20:10:00 -04:00
lewri
9a7177a0df Merge pull request #2850 from Alberth289346/extend-animview
Extend animview
2025-05-07 22:52:21 +01:00
Alberth
bbb000b2d1 Improve the text of the button to set the marker position. 2025-05-07 17:33:04 +02:00
Alberth
deeb108a12 Reformat code 2025-05-06 18:05:26 +02:00
Alberth
7d133fd3d1 Replace regex matching with a character scanning and matching. 2025-05-06 17:43:25 +02:00
Stephen E. Baker
a86694a468 Merge pull request #2847 from Alberth289346/eliminate-world-animation_manager
Eliminate world.animation_manager
2025-05-05 21:05:09 -04:00
Stephen E. Baker
239a161380 Merge pull request #2849 from lewri/fix_linear_interpolation
Fix Linear Interpolation for markers
2025-05-05 20:37:24 -04:00
Stephen E. Baker
ec8ec544e3 Merge pull request #2851 from lewri/fix_toilet_markers
Fix markers in toilets
2025-05-05 20:35:08 -04:00
lewri
fe435d732f Fix markers in toilets 2025-05-05 21:29:58 +01:00
Artem Argus
de9c1317ab fix pick up surgeon skips hand washing (#2839) 2025-05-05 22:03:25 +03:00
lewri
f7eb43b278 Fix Linear Interpolation for markers 2025-05-05 19:07:09 +01:00
Alberth
246a475ffc Reformat CPP code 2025-05-05 16:39:38 +02:00
Alberth
10baf0ee44 Print set mood positions to stdout.
- Simplest way to get the set mood positions as text.
2025-05-05 16:25:26 +02:00
Alberth
cb06c95ed0 Animview: Extend mood handling.
- Allow entering a mood position.
- Allow fine-tuning the position.
2025-05-05 16:25:26 +02:00
Stephen E. Baker
1ddbbb4e35 Clean up obsolete cmake options (#2846)
* Remove remainder of VLD

Some components were left behind when I removed the cmake option for
vld.

* Remove USE_PRECOMPILED_DEPS option

Hasn't been maintained in 8 years. The use case has been replaced by
vcpkg.
2025-05-05 13:47:43 +03:00
Alberth
c88cb9d343 Eliminate world.animation_manager
- TheApp.animation_manager exists without detour through world
2025-05-05 09:55:35 +02:00
Alberth289346
89d651633b Merge pull request #2845 from lewri/fix_cabinet_marker
Fix cabinet staff marker
2025-05-05 08:57:29 +02:00
lewri
045cbdcb18 Fix cabinet staff marker 2025-05-04 22:24:57 +01:00
lewri
ceb7cdab07 Merge pull request #2824 from Alberth289346/marker-split-add-and-improve
Marker split add and improve
2025-05-04 20:59:45 +01:00
Alberth
4449fa47e7 Remove upper bound from the afterLoad condition of this patch 2025-05-04 19:48:31 +02:00
Alberth289346
14dce1b1f1 Update CorsixTH/Lua/entities/humanoids/patient.lua
Spotted by lewri: Patients use the first marker !
2025-05-04 13:48:01 +02:00
Alberth
5fd9ab0633 Expand the explanation about marker positions with practical information. 2025-05-03 08:41:08 +02:00