(svn r13245) -Codechange: Use SmallVectors for generating vehicle lists, simplifying calling code somewhat.

This commit is contained in:
2008-05-25 16:12:13 +00:00
parent 32380e257c
commit da8bb14cec
4 changed files with 145 additions and 88 deletions

View File

@@ -6,6 +6,7 @@
#define VEHICLE_TYPE_H
#include "core/enum_type.hpp"
#include "misc/smallvec.h"
typedef uint16 VehicleID;
@@ -56,4 +57,6 @@ enum DepotCommand {
DEPOT_COMMAND_MASK = 0xF,
};
typedef SmallVector<const Vehicle*, 32> VehicleList;
#endif /* VEHICLE_TYPE_H */