diff options
author | rubidium <rubidium@openttd.org> | 2010-02-10 21:28:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-02-10 21:28:26 +0000 |
commit | 32cdc157ee7940676db7d62921572992d7e0445a (patch) | |
tree | 16b2276303184dcae8e62a6b75b62da2d1deed17 /src/aircraft_cmd.cpp | |
parent | 7a73a7490d6c2aed45a9773d5399416a29a4cc4e (diff) | |
download | openttd-32cdc157ee7940676db7d62921572992d7e0445a.tar.xz |
(svn r19091) -Cleanup: remove some unneeded zeroing
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index bea8f1f72..b6e023823 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -273,7 +273,6 @@ CommandCost CmdBuildAircraft(TileIndex tile, DoCommandFlag flags, uint32 p1, uin v->owner = u->owner = _current_company; v->tile = tile; -// u->tile = 0; uint x = TileX(tile) * TILE_SIZE + 5; uint y = TileY(tile) * TILE_SIZE + 3; @@ -284,15 +283,10 @@ CommandCost CmdBuildAircraft(TileIndex tile, DoCommandFlag flags, uint32 p1, uin u->z_pos = GetSlopeZ(x, y); v->z_pos = u->z_pos + 1; - v->running_ticks = 0; - -// u->delta_x = u->delta_y = 0; - v->vehstatus = VS_HIDDEN | VS_STOPPED | VS_DEFPAL; u->vehstatus = VS_HIDDEN | VS_UNCLICKABLE | VS_SHADOW; v->spritenum = avi->image_index; -// v->cargo_count = u->number_of_pieces = 0; v->cargo_cap = avi->passenger_capacity; u->cargo_cap = avi->mail_capacity; @@ -300,15 +294,8 @@ CommandCost CmdBuildAircraft(TileIndex tile, DoCommandFlag flags, uint32 p1, uin v->cargo_type = e->GetDefaultCargoType(); u->cargo_type = CT_MAIL; - v->cargo_subtype = 0; - v->name = NULL; -// v->next_order_param = v->next_order = 0; - -// v->time_counter = 0; -// v->progress = 0; v->last_station_visited = INVALID_STATION; -// v->destination_coords = 0; v->max_speed = avi->max_speed; v->acceleration = avi->acceleration; |