Fix car disappearing when using town interface

This commit is contained in:
Alexander Batalov 2022-12-13 13:20:55 +03:00
parent b5701fb9b9
commit e02dcdf69d
1 changed files with 8 additions and 0 deletions

View File

@ -3169,6 +3169,14 @@ static int wmWorldMapFunc(int a1)
if (map != -1) { if (map != -1) {
if (wmGenData.isInCar) { if (wmGenData.isInCar) {
// SFALL: Fix for the car being lost when entering a
// location via the Town/World button and then
// leaving on foot.
//
// CE: Fix is very different, but looks right -
// matches the code above (processing mouse events).
wmGenData.isInCar = false;
wmMatchAreaContainingMapIdx(map, &(wmGenData.currentCarAreaId)); wmMatchAreaContainingMapIdx(map, &(wmGenData.currentCarAreaId));
} }