mirror of https://github.com/OpenTTD/OpenTTD
Codechange: Remove OrderTypeByte
parent
96097b34a5
commit
60e31c7cfa
|
@ -1465,7 +1465,7 @@ CommandCost CmdModifyOrder(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
|
|||
* whether we are not going to a depot as there are three
|
||||
* cases where the full load flag can be active and only
|
||||
* one case where the flag is used for depot orders. In the
|
||||
* other cases for the OrderTypeByte the flags are not used,
|
||||
* other cases for the OrderType the flags are not used,
|
||||
* so do not care and those orders should not be active
|
||||
* when this function is called.
|
||||
*/
|
||||
|
|
|
@ -33,8 +33,8 @@ static const OrderID INVALID_ORDER = 0xFFFFFF;
|
|||
*/
|
||||
static const uint IMPLICIT_ORDER_ONLY_CAP = 32;
|
||||
|
||||
/** Order types */
|
||||
enum OrderType {
|
||||
/** Order types. It needs to be 8bits, because we save and load it as such */
|
||||
enum OrderType : byte {
|
||||
OT_BEGIN = 0,
|
||||
OT_NOTHING = 0,
|
||||
OT_GOTO_STATION = 1,
|
||||
|
@ -48,10 +48,6 @@ enum OrderType {
|
|||
OT_END
|
||||
};
|
||||
|
||||
/** It needs to be 8bits, because we save and load it as such */
|
||||
typedef SimpleTinyEnumT<OrderType, byte> OrderTypeByte;
|
||||
|
||||
|
||||
/**
|
||||
* Flags related to the unloading order.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue