diff options
author | truelight <truelight@openttd.org> | 2004-12-30 09:46:40 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-30 09:46:40 +0000 |
commit | 32c3fbd18ea40c46717aa6dfa35235aa5b66fe07 (patch) | |
tree | f4717e74c787a8bd7fab47b1b0e6986f4f32702f | |
parent | 635b854c29c79dd8f22de9edb20d75207b4eafdd (diff) | |
download | openttd-32c3fbd18ea40c46717aa6dfa35235aa5b66fe07.tar.xz |
(svn r1300) -Fix: The cost for an autorenew was not always send to the right player ;)
-rw-r--r-- | vehicle.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1481,6 +1481,8 @@ void MaybeRenewVehicle(Vehicle *v) if (!_patches.autorenew || v->age - v->max_age < (_patches.autorenew_months * 30)) return; + _current_player = v->owner; + /* Now renew the vehicle */ DoCommandP(v->tile, v->index, v->engine_type, NULL, CMD_RENEW_VEHICLE); } |