Mercurial > hg > openttd
changeset 7783:ea876c197cb2 draft
(svn r11333) -Fix: Train engines still had a value of 0.
author | maedhros <maedhros@openttd.org> |
---|---|
date | Sun, 21 Oct 2007 16:52:01 +0000 |
parents | f81103463949 |
children | 84407cb523b6 |
files | src/train_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -704,6 +704,7 @@ int x = TileX(tile) * TILE_SIZE + _vehicle_initial_x_fract[dir]; int y = TileY(tile) * TILE_SIZE + _vehicle_initial_y_fract[dir]; + v = new (v) Train(); v->unitnumber = unit_num; v->direction = DiagDirToDir(dir); v->tile = tile; @@ -736,7 +737,6 @@ v->service_interval = _patches.servint_trains; v->date_of_last_service = _date; v->build_year = _cur_year; - v = new (v) Train(); v->cur_image = 0xAC2; v->random_bits = VehicleRandomBits();