Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1] mmBridgeSet::Init #143

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

[1] mmBridgeSet::Init #143

wants to merge 2 commits into from

Conversation

KcRobin9
Copy link
Collaborator

The original bridge function causes crashes in custom maps when in multiplayer mode.

This is unfortunate as it forces users to add -noai, which then removes the bridges and has other side effects.

I'm not sure why there were additional checks for multiplayer.
Moreover, I wasn't fully sure how to deal with PtlPath.

But for now, the current version compiles and looks to run fine in game.

@KcRobin9
Copy link
Collaborator Author

KcRobin9 commented Jun 19, 2024

Game.cpp (lines 803 - 809)

    // TODO: Fix crash in mmBridgeSet::Init when the AI map is missing
    if (!MMSTATE.DisableAI)
    {
        AnimMgr = arnew mmAnimMgr();
        AnimMgr->Init(MapName, Player->Car.Sim.Model, nullptr, 0);
        AddChild(AnimMgr.get());
    }

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.

1 participant