coastline 0.0.4
Loading...
Searching...
No Matches
vehicletrackpos.h File Reference
#include "common/types.h"
#include "common/vehiclefwd.h"
Include dependency graph for vehicletrackpos.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

s32 UpdateVehicleTrackPosition (Vehicle *vehicle)
 Find the nearest point of the route to a vehicle and add how far it went along the route to its distance.

Function Documentation

◆ UpdateVehicleTrackPosition()

s32 UpdateVehicleTrackPosition ( Vehicle * vehicle)

Find the nearest point of the route to a vehicle and add how far it went along the route to its distance.

A vehicle that has not crossed out of its point and stays near it keeps it.

Parameters
vehicleThe vehicle.
Returns
0 if no point is near enough, 1 otherwise.
Ghidra address:
USA: 0x8021eb50
Ghidra address:
Asia: 0x8021E6A0
Ghidra address:
EUR: 0x8021fe50
Ghidra address:
JPN: 0x8021f640