Skip to content

corrected bug in demofile.cpp - #733

Merged
Lgt2x merged 1 commit into
DescentDevelopers:mainfrom
Isliiide:patch-1
Sep 16, 2026
Merged

Lgt2x merged 1 commit into
DescentDevelopers:mainfrom
Isliiide:patch-1

Conversation

@Isliiide

Copy link
Copy Markdown
Contributor

Pull Request Type

  • GitHub Workflow changes
  • Documentation or Wiki changes
  • Build and Dependency changes
  • Runtime changes
    • Render changes
    • Audio changes
    • Input changes
    • Network changes
    • [ X ] Other changes

Description

the function DemoWriteAttachObjRad was writing the wrong opcode (0x0D instead of 0x0E), which may cause problems for demo playbacks (the respective blocks following the opcode have different size).

Checklist

  • [ X ] I have tested my changes locally and verified that they work as intended.
    (no issue on newly built version of the game, and upon checking hex of .dem files, 0x0E happen where they should instead of 0x0D)

  • [ X ] I have documented any new or modified functionality.
    no actual doc, but's the change is one line, and problem was explained.

  • [ X ] I have reviewed the changes to ensure they do not introduce any unnecessary complexity or duplicate code.

  • [ X ] I understand that by submitting this pull request, I am agreeing to license my contributions under the project's license.

the function DemoWriteAttachObjRad was writing the wrong opcode (0x13 instead of 0x14), which may cause problems for demo playbacks (the respective blocks following the opcode have different size)
@Lgt2x
Lgt2x merged commit a3e82bc into DescentDevelopers:main Sep 16, 2026
@Isliiide
Isliiide deleted the patch-1 branch September 16, 2026 14:31
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