Skip to content

Ivan: Move ActorDB registration into IvanCoop.cpp#6815

Open
ShishuTheDragon wants to merge 1 commit into
HarbourMasters:developfrom
ShishuTheDragon:Ivan-actor-db
Open

Ivan: Move ActorDB registration into IvanCoop.cpp#6815
ShishuTheDragon wants to merge 1 commit into
HarbourMasters:developfrom
ShishuTheDragon:Ivan-actor-db

Conversation

@ShishuTheDragon

@ShishuTheDragon ShishuTheDragon commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

This PR moves Ivan’s ActorDB->AddEntry code out of ActorDB.cpp

The DB entry is now added via the ShipInit func in IvanCoop.cpp. This add call is importantly not guarded by any CVars, so it will always register exactly once and always during the boot sequence

This also moves gEnPartnerId out of z_play.c

Build Artifacts


static void RegisterIvanCoop() {
// Register in ActorDB on boot, regardless of whether Ivan is enabled
if (!ivanActorId)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why can't this live in SpawnIvan?

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