Skip to content

Car given to the player even when it shouldn't #538

@blackpaulillyria

Description

@blackpaulillyria

I discovered an odd bug regarding the car.

Let's say you remove the function car_give_to_party from the map_exit_p_proc that fires on a map script for a random encounter.

If you exit that map on a brown exit grid, you will continue traveling the world map on foot as expected.
However, if you do the exact same thing while the combat is initialized, you will continue traveling in the car even though car_give_to_party was never called.

This only happens in a random encounter while combat is initialized when you hit the brown exit grid.
I looked a little bit through the source code and believe that the issue is with wmGenData.isInCar not being set to false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions