(svn r15321) -Codechange: Load road vehicle 'realistic' acceleration properties from NewGRF, and supply defaults as used by TTDPatch. These values are not yet used.

This commit is contained in:
2009-02-02 21:52:34 +00:00
parent 48e6e7d586
commit 5e6e4417a5
3 changed files with 103 additions and 97 deletions

View File

@@ -778,12 +778,11 @@ static ChangeInfoResult RoadVehicleChangeInfo(uint engine, int numinfo, int prop
break;
case 0x13: // Power in 10hp
rvi->power = grf_load_byte(&buf);
break;
case 0x14: // Weight in 1/4 tons
/** @todo Support for road vehicles realistic power
* computations (called rvpower in TTDPatch) is just
* missing in OTTD yet. --pasky */
grf_load_byte(&buf);
ret = CIR_UNHANDLED;
rvi->weight = grf_load_byte(&buf);
break;
case 0x15: // Speed in mph/0.8
@@ -799,10 +798,11 @@ static ChangeInfoResult RoadVehicleChangeInfo(uint engine, int numinfo, int prop
break;
case 0x18: // Tractive effort
rvi->tractive_effort = grf_load_byte(&buf);
break;
case 0x19: // Air drag
/** @todo Tractive effort and air drag for road vehicles. */
grf_load_byte(&buf);
ret = CIR_UNHANDLED;
rvi->air_drag = grf_load_byte(&buf);
break;
case 0x1A: // Refit cost