Skip to content

Vectorize MsgItems - #7687

Open
Kestrellius wants to merge 3 commits into
scp-fs2open:masterfrom
Kestrellius:maxmsg
Open

Vectorize MsgItems#7687
Kestrellius wants to merge 3 commits into
scp-fs2open:masterfrom
Kestrellius:maxmsg

Conversation

@Kestrellius

Copy link
Copy Markdown
Contributor

Convert MsgItems from an array to a vector, and remove the associated limit value and counter.

MsgItems is dynamically rewritten at runtime, and previously used a counter value of -1 to indicate that the array was in a state suitable for rewriting in some circumstances. To replicate this behavior, MsgItems is now actually an std::optional<SCP_vector<mmode_item>>, and its nullopt state corresponds to -1.

@wookieejedi wookieejedi added cleanup A modification or rewrite of code to make it more understandable or easier to maintain. fix A fix for bugs, not-a-bugs, and/or regressions. HUD A feature or issue related to the HUD labels Aug 6, 2026
@wookieejedi wookieejedi added this to the Release 26.0.1 milestone Aug 6, 2026

@Goober5000 Goober5000 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This will need some rework. I sent a message on Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup A modification or rewrite of code to make it more understandable or easier to maintain. fix A fix for bugs, not-a-bugs, and/or regressions. HUD A feature or issue related to the HUD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants