Skip to content

Conversation

@daft7
Copy link
Contributor

@daft7 daft7 commented Feb 19, 2025

Groundwork for xMath3.

daft7 added 16 commits February 15, 2025 22:25
… and StatforNPC. Also have outline for ClearActive in comments.
…d en_SM_NOTICES to zNPCTypeCommon to avoid recursive include.
…Spawner instead of transitively via zNPCTypeCommon.
…3x3Identity because they were already specified in xClimate.cpp. Added declarations for them in xClimate.h and moved an import in zNPCGlyp.cpp.
…3Copy will eventually be moved to xMath3 most likely.
…cpp. For other uses in game, use from xMath3, hence uncommenting.
void xBoxFromLine(xBox& box, const xLine3& line);
void xBoxFromRay(xBox& box, const xRay3& ray);
void xMat3x3Identity(xMat3x3* matrix);
void xMat3x3Identity(xMat3x3* matrix); // May come from xClimate
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit of a nit I know, but can you remove these comments (or at least reword them somehow). They don't really "come from" xClimate, but rather would have been defined here directly in this header file and just by chance the definition in xClimate's translation unit ended up being the one that the linker chose to use (maybe it was the first/last usage or something like that).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to leave a comment about this I would probably say something like
// TODO: These functions should be inline

@SquareMan SquareMan merged commit 39db44d into bfbbdecomp:main Feb 20, 2025
2 checks passed
@daft7 daft7 deleted the xMath3 branch February 21, 2025 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants