forked from mirror/OpenTTD
(svn r13245) -Codechange: Use SmallVectors for generating vehicle lists, simplifying calling code somewhat.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user