mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(svn r6176) -Fix r6052: I assumed an typedefd enum would be an uint8, which is a really stupid thing to assume.
This caused nasty endian bugs. Thank you SO MUCH Osai for all your time in debugging this!! And tnx Rubidium for spotting :)
This commit is contained in:
parent
c4c3f679a2
commit
70d9e2486d
8
order.h
8
order.h
@ -15,15 +15,17 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Order types */
|
/* Order types */
|
||||||
typedef enum OrderTypes {
|
enum OrderTypes {
|
||||||
OT_NOTHING = 0,
|
OT_NOTHING = 0,
|
||||||
OT_GOTO_STATION = 1,
|
OT_GOTO_STATION = 1,
|
||||||
OT_GOTO_DEPOT = 2,
|
OT_GOTO_DEPOT = 2,
|
||||||
OT_LOADING = 3,
|
OT_LOADING = 3,
|
||||||
OT_LEAVESTATION = 4,
|
OT_LEAVESTATION = 4,
|
||||||
OT_DUMMY = 5,
|
OT_DUMMY = 5,
|
||||||
OT_GOTO_WAYPOINT = 6
|
OT_GOTO_WAYPOINT = 6,
|
||||||
} OrderType;
|
};
|
||||||
|
/* It needs to be 8bits, because we save and load it as such */
|
||||||
|
typedef uint8 OrderType;
|
||||||
|
|
||||||
/* Order flags -- please use OFB instead OF and use HASBIT/SETBIT/CLEARBIT */
|
/* Order flags -- please use OFB instead OF and use HASBIT/SETBIT/CLEARBIT */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user