There are a few source files that are >10kb in size, which is highly suspect. No module should need to be this big. They may be big because they contain large, hand-coded data structures (which can be separated from logic), or they have multiple functionality.
Currently the following source files exceed 10kb in size:
- actors.c (26kb)
- ai.c (14kb)
- cdogs.c (27kb)
- cdogsed.c (39kb)
- charsed.c (17kb)
- files.c (20kb)
- game.c (15kb)
- mainmenu.c (26kb)
- map.c (29kb)
- mission.c (19kb)
- objs.c (27kb)
- pics.c (21kb)
- prep.c (24kb)
This is almost half of all the source files. Given that CDogs is a fairly big game for the number of source files, this is somewhat expected.
This will be a big ongoing issue. Keep updating this issue with findings such as:
- why a certain source file is so big, i.e. hardcoded structures, or multiple functionality
- any refactors done
- common functionality found