mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r10302) -Fix [YAPF, MP]: now (with r10301) it is no longer needed to invalidate the YAPF segment cache every tick in MP. Segment cost now doesn't contain the curves between segments. As a result the cache should be now accurate.
This commit is contained in:
parent
ef4c335cb4
commit
a7d5363e65
@ -773,14 +773,6 @@ static VehicleTickProc* _vehicle_tick_procs[] = {
|
|||||||
|
|
||||||
void CallVehicleTicks()
|
void CallVehicleTicks()
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_NETWORK
|
|
||||||
/* hotfix for desync problem:
|
|
||||||
* for MP games invalidate the YAPF cache every tick to keep it exactly the same on the server and all clients */
|
|
||||||
if (_networking) {
|
|
||||||
YapfNotifyTrackLayoutChange(INVALID_TILE, INVALID_TRACK);
|
|
||||||
}
|
|
||||||
#endif //ENABLE_NETWORK
|
|
||||||
|
|
||||||
_first_veh_in_depot_list = NULL; // now we are sure it's initialized at the start of each tick
|
_first_veh_in_depot_list = NULL; // now we are sure it's initialized at the start of each tick
|
||||||
|
|
||||||
Station *st;
|
Station *st;
|
||||||
|
Loading…
Reference in New Issue
Block a user