(svn r10493) -Codechange: update some callback ID enums to reflect their changed usage, add a few and update the comments.

This commit is contained in:
rubidium
2007-07-09 19:38:12 +00:00
parent ad5a68a282
commit 7cb7488836
5 changed files with 121 additions and 112 deletions

View File

@@ -126,7 +126,7 @@ byte GetRoadVehLength(const Vehicle *v)
{
byte length = 8;
uint16 veh_len = GetVehicleCallback(CBID_TRAIN_VEHICLE_LENGTH, 0, 0, v->engine_type, v);
uint16 veh_len = GetVehicleCallback(CBID_VEHICLE_LENGTH, 0, 0, v->engine_type, v);
if (veh_len != CALLBACK_FAILED) {
length -= clamp(veh_len, 0, 7);
}