13 Commits

Author SHA1 Message Date
RenechCDDA 4b9be2469f Remove the vehicle movement volume test
The test is obviously failing since the aisle's cargo size changed. This is something the test basically is intended to catch (to make sure that moving through an aisle is/isn't cramped) but it... no longer makes sense in the context of what we're doing. We turned off the inability to move through vehicle tiles based on size some time ago, and I don't see it coming back on anytime soon.

Making it a test-specific object doesn't really help the test do what it's supposed to do. Marking it mayfail is not sufficient, it will continue to produce debugmsg and flag the github CI as failed.

Therefore, my approach is to delete the test altogether.
2025-06-07 08:10:54 -04:00
PatrikLundell 586cf5f1ce Mapify: character etc. sees + sundry others (#79699)
* Mapify: character etc. sees + sundry others

* demanded changes

* Corrected correction
2025-02-18 09:29:22 -06:00
moxian c44d65a8ae Run IWYU again to pick up the changes 2025-02-11 13:02:19 -08:00
moxian 2ee44002fd Mechanically IWYU the tests
python3 ~/github/include-what-you-use/iwyu_tool.py -j5 -p build $( find
src/ tests/ -maxdepth 1 -name '*.cpp' | grep -v -f
tools/iwyu/bad_files.txt )  --  -Xiwyu --comment_style=long -Xiwyu -
-max_line_length=1000 -Xiwyu --cxx17ns -Xiwyu
--mapping_file=../tools/iwyu/cata.imp   | tee out/iwyu/f-a-01.txt >
/dev/null

followed by

cat out/iwyu/f-a-02.txt | python3
~/github/include-what-you-use/fix_includes.py --reorder --nosafe_headers

followed by manual fixups of <stddef.h> -> <cstddef> and similar.

tests/generic_factory_test.cpp gets mangled very badly (IWYU bug) so
it's excluded from the list.

Code size:
includes:
$ cat obj/tiles/*.inc | wc
 288068  576136 17898260
$ cat tests/obj/tiles/*.inc | wc
 167044  334088 10465766

post-processed source (clang -E):
./make_preproc.sh src/
68567896 177775140 2134075721
./make_preproc.sh tests/
39341957 102891720 1243323710
2025-02-10 00:46:57 -08:00
PatrikLundell 278c26a11d Convert some vehicle operations to be map aware (#79477)
* Convert some vehicle operations to be map aware

* Oops, forgot to carry the parameter through

* removed unused operation
2025-02-03 07:54:29 +01:00
PatrikLundell 537d9d12a1 Standardized get/set pos operations for talker/creature class hierarchy (#79206)
* Standardized get/set pos operations for talker/creature class hierarchy

* sort out merge failure
2025-01-20 08:20:58 +01:00
PatrikLundell f14346c5db Rename map:: get_global->get_abs, bub_from_abs->get_bub, omt_from_abs->get_omt (#79167)
* Renamed map:: getglobal->get_abs, bub_from_abs->get_bub, omt_from_abs->get_omt

* astyle
2025-01-16 09:15:04 +01:00
Clarence "Sparr" Risher 8b27b967ae Replace point constants with static class members 2024-11-26 10:14:26 -05:00
PatrikLundell c5c01140ba typified a bit of map.h/cpp + dependents (#76712)
* typified a bit of map.h/cpp + dependents

* demanded changes

* demanded master changes drawn to its conclusion

* second int should be in corresponding location
2024-10-02 23:34:12 -05:00
Fris0uman 17b6b9c35b Allow getting in vehicles anyway (#74981)
* Allow to get in the vehicle just be cramped

* NPCs just get in there too

* rename test

* Silence warnings about unused cramped var

---------

Co-authored-by: Fris0uman <fris0uman@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2024-07-13 16:40:17 -07:00
Pär Karlsson 175eae431e Fix character volume calculation (#74348)
* Provide body volume calculation based on body density

* Simplify calculations

* Adjust test cases to the volume calculation

* Adjust volumes for baseline tests too

* Make checks for volume pass within reasaonable ranges

Relying on volumes down to the ml allows us to make changes to volume
calculations, and keep the tests withing reasaonable boundaries.

references #74263

* Make checks for volume less dependent on exact volumes

Make tests more flexible

* Make tests exact, set character to exact calorie count

This strategy makes the test repeatable

* Remove unused header units.h
2024-06-14 23:56:08 -04:00
osuphobia 3deb03a85e Clang-tidy (#74259) 2024-06-02 12:45:44 -04:00
RenechCDDA f8eaf9392a Unit tests for character volume interactions with vehicles 2024-05-29 04:25:18 -04:00