12 Commits

Author SHA1 Message Date
ShnitzelX2 b9abbe6e57 assign_activity resets NPC attitude only if activity starts successfully
also adds a convenience function for processing all activity turns
2026-09-25 22:51:09 -04:00
RenechCDDA cb924413e4 Move init_veh_status to an enum (oh god) 2026-05-17 23:11:41 -04:00
Andrew Krieger 0215b26cce Rewrite all tests to clear map without touching character map memory, for performance. 2026-02-08 23:05:55 -08:00
salartarium 8a254d16df Merge pull request #84978 from salartarium/patchme 2026-01-29 16:36:27 +01: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 6a0cc1e154 made more vehicle stuff map aware (#79544)
* made more vehicle stuff map aware

* demanded change

* demanded change
2025-02-06 00:57:40 -06: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
RenechCDDA 43c2abf54a Fix some tests that relied on previous ordering, maybe 2024-12-21 02:22:39 -05:00
RenechCDDA 47fa616ee4 Add some tests for NPC rules (#78524)
* Add some tests for NPC rules

* Add a test for the close doors rule

* Oops - we must actually set the test NPCto be a follower

* Add a test for locked doors rule

* Also add an opposite case, that behavior is correct when flag is NOT set

* Fix clang warnings
(sting id naming)
(string id *sorting*)
(test names don't include special chars)

* Potential fix for ordering issues
+ Clean up some UB
+ Remove now misleading comment

* Fix for GCC9??

* Yet further attempts to refine flaky test

* Check directly for the door lock, not via vehicle::next_part_to_lock()

* Check to make sure the door is closed, too :(

* Lock the door... and the door lock? Why are these separate again?
2024-12-19 14:46:44 -08:00