mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 17:33:05 +00:00
SAGA2: Properly mark structs as packed
This commit is contained in:
parent
5bb5fe9396
commit
3ad054d85c
@ -108,6 +108,7 @@ const int activeItemMapShift = 13;
|
||||
|
||||
const int16 activeItemIndexNullID = 0x1FFF;
|
||||
|
||||
#include "common/pack-start.h"
|
||||
struct ActiveItemID {
|
||||
int16 val; // ID value --
|
||||
// first 3 bits world number
|
||||
@ -179,7 +180,8 @@ struct ActiveItemID {
|
||||
int16 getIndexNum(void) {
|
||||
return val & activeItemIndexMask;
|
||||
}
|
||||
};
|
||||
} PACKED_STRUCT;
|
||||
#include "common/pack-end.h"
|
||||
|
||||
// ID of NULL active item
|
||||
extern const ActiveItemID NoActiveItem;
|
||||
|
@ -63,7 +63,7 @@ struct ActiveMissionData {
|
||||
KnowledgeID missionKnowledgeList[32];
|
||||
uint16 numObjectIDs,
|
||||
numKnowledgeIDs;
|
||||
};
|
||||
} PACKED_STRUCT;
|
||||
|
||||
#include "common/pack-end.h"
|
||||
|
||||
|
@ -104,7 +104,7 @@ struct TilePoint {
|
||||
int16 quickDir(void);
|
||||
|
||||
int16 magnitude(void);
|
||||
};
|
||||
} PACKED_STRUCT;
|
||||
#include "common/pack-end.h"
|
||||
|
||||
|
||||
|
@ -383,7 +383,7 @@ struct ActiveItemData {
|
||||
worldNum; // Add 0xf000 to get world Object ID
|
||||
} instance;
|
||||
};
|
||||
};
|
||||
} PACKED_STRUCT;
|
||||
|
||||
#include "common/pack-end.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user