22 Commits

Author SHA1 Message Date
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
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
PatrikLundell 7bfa56fa99 Merge branch 'master' into mapify 2025-02-13 08:46:56 +01:00
moxian c44d65a8ae Run IWYU again to pick up the changes 2025-02-11 13:02:19 -08:00
moxian 73ec6e4584 Merge branch 'master' into iwyu-l-27 2025-02-11 10:40:53 -08:00
PatrikLundell 0ac675121c mapified a little item prompting a lot of vehicle 2025-02-11 15:10:00 +01:00
PatrikLundell 470e1312ee mapified a lot of vehicle stuff (#79611)
* mapified a lot of vehicle stuff

* fixed complaint, but properly
2025-02-10 17:25:39 -06: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 4fb5f14234 make some vehicle operations map aware (#79599)
* make some vehicle operations map aware

* hid names of unused parameters

* Update src/vehicle.h

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* equality, not assignment

* demanded change

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-08 22:06:31 -06: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 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 456a199f5c typified a bit of map.cpp and dependents 2024-10-08 16:23:15 +02:00
PatrikLundell 128e94132b typified a bit of map.h/cpp + dependencies (#76795)
* typified a bit of map.h/cpp + dependencies

* demanded changes

* sorted out merge mess
2024-10-06 22:42:35 -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
RenechCDDA 8cd1719d58 NPC support for engine starting activity 2024-08-05 12:02:13 -04:00
PatrikLundell 027459c311 Typified a bit of map.h/cpp + dependents (#74979)
* Typified a bit of map.h/cpp + dependents

* demanded change

* demanded change
2024-07-17 08:47:51 -04:00
PatrikLundell 38267e0b54 Typified a bit of map.h/cpp (#74963)
* Typified a bit of map.h/cpp

* demanded changes
2024-07-10 21:45:20 -04:00
PatrikLundell f7e64c68d6 Made tinymap load take a tripoint_abs_omt parameter instead of untyped tripoint (#72145)
* Made tinymap load use omt coordinates (and thus alignment)
2024-03-19 19:32:24 -07:00
andrei c6e49f97a6 tests: more mapgen cleanup tests 2022-06-27 22:26:44 +03:00
andrei 95533a0552 tests: add tests for remove_vehicles mapgen update 2022-06-24 10:08:55 +03:00