OpenTTD

Tasklist

FS#6278 - reduced smoke on the bridge for road vehicles

Attached to Project: OpenTTD
Opened by M.Czapkiewicz (McZapkie) - Wednesday, 08 April 2015, 16:33 GMT
Last edited by Ingo von Borstel (planetmaker) - Thursday, 09 April 2015, 18:19 GMT
Type Bug
Category Vehicles
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version 1.5.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Currently, RVs emits large cloud of smoke if speed is limited (for example due to slow bridge), because current max speed is not checked (only order max speed).
It can be simply corrected by adding line:

if (this->type == VEH_ROAD) max_speed = min(max_speed, this->GetCurrentMaxSpeed());

before or after
if (this->type == VEH_ROAD || this->type == VEH_SHIP) max_speed = min(max_speed, this->current_order.GetMaxSpeed() * 2);
This task depends upon

Closed by  Ingo von Borstel (planetmaker)
Thursday, 09 April 2015, 18:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in r27222. Thanks for the report. It was even more general a problem than you described :)
Comment by M.Czapkiewicz (McZapkie) - Wednesday, 08 April 2015, 16:35 GMT
forgot to mention, that above fixes apply to Vehicle::ShowVisualEffect() function defined in vehicle.cpp

Loading...