Codechange: Un-bitstuff vehicle/engine commands.

This commit is contained in:
Michael Lutz
2021-11-05 23:55:23 +01:00
parent 2637c06f88
commit 21675ec7e2
25 changed files with 221 additions and 268 deletions

View File

@@ -16,7 +16,7 @@
#include "tile_type.h"
/** Vehicle List type flags */
enum VehicleListType {
enum VehicleListType : byte {
VL_STANDARD,
VL_SHARED_ORDERS,
VL_STATION_LIST,
@@ -36,6 +36,8 @@ struct VehicleListIdentifier {
bool UnpackIfValid(uint32 data);
static VehicleListIdentifier UnPack(uint32 data);
bool Valid() const { return this->type < VLT_END; }
/**
* Create a simple vehicle list.
* @param type List type.