From 17d341b9021b407a4a88be5968b7d570eac41801 Mon Sep 17 00:00:00 2001 From: bjarni Date: Sat, 29 Oct 2005 21:54:28 +0000 Subject: (svn r3101) -Codechange: added _new_vehicle_id this var works like _new_train_id and the rest of that kind of vars, except it is set each time a vehicle is build, nomatter what type this is a nice tool to code vehicle independent code, which in turn can reduce code duplication Right now it's used in ReplaceVehicle() and CmdCloneVehicle() --- aircraft_cmd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'aircraft_cmd.c') diff --git a/aircraft_cmd.c b/aircraft_cmd.c index ebd4c5f7b..1b485216c 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -251,6 +251,7 @@ int32 CmdBuildAircraft(int x, int y, uint32 flags, uint32 p1, uint32 p2) v->max_age = e->lifelength * 366; _new_aircraft_id = v->index; + _new_vehicle_id = v->index; v->u.air.pos = MAX_ELEMENTS; -- cgit v1.2.3-54-g00ecf