Added load of new script offset field for NPC handling of hotspots

svn-id: r22235
This commit is contained in:
Paul Gilbert 2006-04-30 05:34:54 +00:00
parent b59a791c5e
commit 8f1604e4cf
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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; }