Skip to content

Conversation

@xezon
Copy link

@xezon xezon commented Jan 24, 2026

Merge with Rebase

This change merges the code of several common systems needed for ParticleSystem. The merges are split into 4 commits.

Generals gets, among some other details

  • ChallengeGenerals code
  • INI parse changes
  • DUMP_PERF_STATS in Debug

TODO

  • Test all individual commits compile

@xezon xezon added this to the Code foundation build up milestone Jan 24, 2026
@xezon xezon added Gen Relates to Generals ZH Relates to Zero Hour Unify Unifies code between Generals and Zero Hour labels Jan 24, 2026
@xezon xezon force-pushed the xezon/unify-particlesystem-dependencies branch from d608106 to 4f79927 Compare January 24, 2026 16:17
@xezon xezon changed the title unify: Merge code of several common systems needed for ParticleSystem unify: Merge common systems code needed for ParticleSystem Jan 24, 2026
//-------------------------------------------------------------------------------------------------
void ScriptEngine::parseScriptCondition( INI* ini )
{
}
Copy link
Author

Choose a reason for hiding this comment

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

The merged parse functions are intentionally left empty. To be merged fully another time.

#define INT_TO_REAL(x) ((Real)(x))

// once we've ceiled/floored, trunc and round are identical, and currently, round is faster... (srj)
#if RTS_GENERALS /*&& RETAIL_COMPATIBLE_CRC*/
Copy link
Author

@xezon xezon Jan 24, 2026

Choose a reason for hiding this comment

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

This is not ideal, but alright because BaseType.h cannot see RETAIL_COMPATIBLE_CRC. This code can be removed when we remove RETAIL_COMPATIBLE_CRC.

I do not know if ZH and GEN effectively produce the same code with the different functions and it is not worth the risk to guess.

Copy link

@Skyaero42 Skyaero42 left a comment

Choose a reason for hiding this comment

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

Looks good

@xezon xezon merged commit 2fb478a into TheSuperHackers:main Jan 24, 2026
26 checks passed
xezon added a commit that referenced this pull request Jan 24, 2026
@xezon xezon deleted the xezon/unify-particlesystem-dependencies branch January 24, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Gen Relates to Generals Unify Unifies code between Generals and Zero Hour ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants