Skip to content

Adjust map position rounding to match RPG_RT behavior #2276

@mateofio

Description

@mateofio

In RPG_RT, The function SetMapPosition(map, x, y) (equvalent to our MoveTo()) does not round the character X and Y position, instead it sets them event if they are out of bounds, and then later code in moving, vehicle boarding, collision etc.. does the rounding.

In player, we set x and y in MoveTo().

Investigate these differences and modify our code to be compliant, identify any game visible bugs arising from this and test them.

DynRPG addresses

Addr Name
004C43A8 Character::SetMapPosition
004A8AEC Hero::SetMapPosition
004A8528 Map::RoundX
004A8568 Map::RoundY

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions