summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-02-10 21:28:26 +0000
committerrubidium <rubidium@openttd.org>2010-02-10 21:28:26 +0000
commit32cdc157ee7940676db7d62921572992d7e0445a (patch)
tree16b2276303184dcae8e62a6b75b62da2d1deed17 /src/roadveh_cmd.cpp
parent7a73a7490d6c2aed45a9773d5399416a29a4cc4e (diff)
downloadopenttd-32cdc157ee7940676db7d62921572992d7e0445a.tar.xz
(svn r19091) -Cleanup: remove some unneeded zeroing
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index b7dd6bb4c..4a9ed1a88 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -244,23 +244,13 @@ CommandCost CmdBuildRoadVeh(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
v->y_pos = y;
v->z_pos = GetSlopeZ(x, y);
-// v->running_ticks = 0;
-
v->state = RVSB_IN_DEPOT;
v->vehstatus = VS_HIDDEN | VS_STOPPED | VS_DEFPAL;
v->spritenum = rvi->image_index;
v->cargo_type = e->GetDefaultCargoType();
-// v->cargo_subtype = 0;
v->cargo_cap = rvi->capacity;
-// v->cargo_count = 0;
v->value = cost.GetCost();
-// v->day_counter = 0;
-// v->next_order_param = v->next_order = 0;
-// v->time_counter = 0;
-// v->progress = 0;
-
-// v->overtaking = 0;
v->last_station_visited = INVALID_STATION;
v->max_speed = rvi->max_speed;
@@ -272,8 +262,6 @@ CommandCost CmdBuildRoadVeh(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
v->max_age = e->GetLifeLengthInDays();
_new_vehicle_id = v->index;
- v->name = NULL;
-
v->service_interval = Company::Get(v->owner)->settings.vehicle.servint_roadveh;
v->date_of_last_service = _date;
@@ -287,7 +275,6 @@ CommandCost CmdBuildRoadVeh(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
v->compatible_roadtypes = RoadTypeToRoadTypes(v->roadtype);
v->rcache.cached_veh_length = 8;
- v->vehicle_flags = 0;
if (e->flags & ENGINE_EXCLUSIVE_PREVIEW) SetBit(v->vehicle_flags, VF_BUILT_AS_PROTOTYPE);
AddArticulatedParts(v);