summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-09 18:08:20 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-09 18:08:20 +0000
commit32622f2c7bb9577bd1b547454041dce6e5cb0019 (patch)
treead116dcab068190723666759f4e2714ff7f155dc
parentd8215a1f590249096f4037072e81a655b05ba394 (diff)
downloadopenttd-32622f2c7bb9577bd1b547454041dce6e5cb0019.tar.xz
(svn r4339) - Comment Change: NewGRF, update comments for units of speed
-rw-r--r--newgrf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/newgrf.c b/newgrf.c
index 750685243..cffb88c9c 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -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 */