(svn r266) -Fix: hopefully fixed the desync problem nicely (and reverted the

workaround for it)
This commit is contained in:
truelight
2004-09-15 18:36:33 +00:00
parent 0346fec1ca
commit a69e422cdd
5 changed files with 28 additions and 9 deletions

View File

@@ -1208,10 +1208,12 @@ int LoadUnloadVehicle(Vehicle *v)
GoodsEntry *ge;
int t;
uint count, cap;
byte old_player;
assert((v->next_order&0x1F) == OT_LOADING);
v->cur_speed = 0;
old_player = _current_player;
_current_player = v->owner;
st = DEREF_STATION(last_visited = v->last_station_visited);
@@ -1318,6 +1320,7 @@ next_vehicle:;
}
}
_current_player = old_player;
return result;
}