summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2007-06-24 13:22:41 +0000
committerKUDr <kudr@openttd.org>2007-06-24 13:22:41 +0000
commita7d5363e65d23f3684c4bc93be18f8f13f11d134 (patch)
tree2d3db9bb0493e4e8852b8c6ecc5dceaedb7f0b98 /src
parentef4c335cb4cffa16660944e16e2f1485b1b2188b (diff)
downloadopenttd-a7d5363e65d23f3684c4bc93be18f8f13f11d134.tar.xz
(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.
Diffstat (limited to 'src')
-rw-r--r--src/vehicle.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index b4c3daf92..4dc94f69b 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -773,14 +773,6 @@ static VehicleTickProc* _vehicle_tick_procs[] = {
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
Station *st;