mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
Added load of new script offset field for NPC handling of hotspots
svn-id: r22235
This commit is contained in:
parent
b59a791c5e
commit
8f1604e4cf
@ -281,6 +281,7 @@ HotspotData::HotspotData(HotspotResource *rec) {
|
||||
sequenceOffset = READ_LE_UINT16(&rec->sequenceOffset);
|
||||
tickProcOffset = READ_LE_UINT16(&rec->tickProcOffset);
|
||||
tickTimeout = READ_LE_UINT16(&rec->tickTimeout);
|
||||
tickSequenceOffset = READ_LE_UINT16(&rec->tickSequenceOffset);
|
||||
}
|
||||
|
||||
// Hotspot override data
|
||||
|
@ -82,6 +82,7 @@ struct HotspotResource {
|
||||
uint16 sequenceOffset;
|
||||
uint16 tickProcOffset;
|
||||
uint16 tickTimeout;
|
||||
uint16 tickSequenceOffset;
|
||||
} GCC_PACK;
|
||||
|
||||
struct HotspotAnimResource {
|
||||
@ -383,6 +384,7 @@ public:
|
||||
uint16 sequenceOffset;
|
||||
uint16 tickProcOffset;
|
||||
uint16 tickTimeout;
|
||||
uint16 tickSequenceOffset;
|
||||
|
||||
void enable() { flags |= 0x80; }
|
||||
void disable() { flags &= 0x7F; }
|
||||
|
Loading…
Reference in New Issue
Block a user