1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 18:09:09 +00:00

(svn r4339) - Comment Change: NewGRF, update comments for units of speed

This commit is contained in:
2006-04-09 18:08:20 +00:00
parent d8215a1f59
commit 32622f2c7b

View File

@@ -235,7 +235,7 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
ret = true;
break;
case 0x09: /* Speed */
case 0x09: /* Speed (1 unit is 1 kmh) */
FOR_EACH_OBJECT {
uint16 speed = grf_load_word(&buf);
if (speed == 0xFFFF) speed = 0;
@@ -458,8 +458,8 @@ static bool RoadVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
bool ret = false;
switch (prop) {
case 0x08: /* Speed */
FOR_EACH_OBJECT rvi[i].max_speed = grf_load_byte(&buf); // ?? units
case 0x08: /* Speed (1 unit is 0.5 kmh) */
FOR_EACH_OBJECT rvi[i].max_speed = grf_load_byte(&buf);
break;
case 0x09: /* Running cost factor */
@@ -588,8 +588,8 @@ static bool ShipVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
FOR_EACH_OBJECT svi[i].base_cost = grf_load_byte(&buf); // ?? is it base_cost?
break;
case 0x0B: /* Speed */
FOR_EACH_OBJECT svi[i].max_speed = grf_load_byte(&buf); // ?? units
case 0x0B: /* Speed (1 unit is 0.5 kmh) */
FOR_EACH_OBJECT svi[i].max_speed = grf_load_byte(&buf);
break;
case 0x0C: /* Cargo type */
@@ -696,8 +696,8 @@ static bool AircraftVehicleChangeInfo(uint engine, int numinfo, int prop, byte *
FOR_EACH_OBJECT avi[i].base_cost = grf_load_byte(&buf); // ?? is it base_cost?
break;
case 0x0C: /* Speed */
FOR_EACH_OBJECT avi[i].max_speed = grf_load_byte(&buf); // ?? units
case 0x0C: /* Speed (1 unit is 8 mph) */
FOR_EACH_OBJECT avi[i].max_speed = grf_load_byte(&buf);
break;
case 0x0D: /* Acceleration */