Skip to content

Make SUB_Remove non-virtual#737

Merged
Rainyan merged 1 commit into
NeotokyoRebuild:masterfrom
Rainyan:subremove-no-virt
Oct 16, 2024
Merged

Make SUB_Remove non-virtual#737
Rainyan merged 1 commit into
NeotokyoRebuild:masterfrom
Rainyan:subremove-no-virt

Conversation

@Rainyan

@Rainyan Rainyan commented Oct 16, 2024

Copy link
Copy Markdown
Member

Description

The SUB_Remove think function pointer was made virtual in aae9c80 as a workaround to fix weapons disappearing mid-round. This was later properly addressed in 429f83f, making the virtual declaration redundant. Hence I'm removing the virtual declaration for simplicity, and to avoid the needless vtable indirection overhead.

Toolchain

  • Linux GCC Distro Native [Mint 21.3 + GCC 11.4.0]

The `SUB_Remove` think function pointer was made virtual in
aae9c80 as a workaround to fix weapons
disappearing mid-round. This was later properly addressed in
429f83f, making the virtual declaration
redundant. Hence I'm removing the virtual declaration for simplicity,
and to avoid the needless vtable indirection overhead.
@Rainyan
Rainyan requested a review from a team October 16, 2024 09:39
@Rainyan
Rainyan requested a review from a team October 16, 2024 10:13
@Rainyan
Rainyan merged commit 57a9a2a into NeotokyoRebuild:master Oct 16, 2024
@Rainyan
Rainyan deleted the subremove-no-virt branch October 16, 2024 15:00
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.

3 participants