DescentDevelopers / Descent3

Descent 3 by Outrage Entertainment
GNU General Public License v3.0
2.86k stars 245 forks source link

More aggressive static declarations #347

Open MaddTheSane opened 4 months ago

MaddTheSane commented 4 months ago

Pull Request Type

Description

This more aggressively marks functions and variables as static, as well as marking some values as constexpr. Also included are a lot of comments, mainly remarking if a function is only used in one source file, or if it is unused in Descent 3 (and thus could probably be removed).

Related Issues

This patch does incorporate changes from #346. These can be reverted. A recent rebase removed the DallasFuncs changes.

Checklist

Additional Comments

Opened as a draft because this isn't complete, as well as wanting feedback about functions that aren't used by Descent 3 (either cut content incomplete features, or code that only used by the editor).

Lgt2x commented 4 months ago

Same as #346, we can revisit that when the internal editor is built for Windows. It uses a lot of functions from the game. Thanks for the effort anyways, I hope we can merge it sometime!

bryanperris commented 4 months ago

I approve the changes too