fixed question guard object
This commit is contained in:
parent
cf550a1ad4
commit
a88670c0b9
1 changed files with 8 additions and 7 deletions
15
lib/h3m.py
15
lib/h3m.py
|
@ -495,13 +495,14 @@ def extract(filename):
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
(time_limit, ) = struct.unpack("<I", h3m_data.read(4))
|
if quest:
|
||||||
(length, ) = struct.unpack("<I", h3m_data.read(4))
|
(time_limit, ) = struct.unpack("<I", h3m_data.read(4))
|
||||||
quest_begin = h3m_data.read(length)
|
(length, ) = struct.unpack("<I", h3m_data.read(4))
|
||||||
(length, ) = struct.unpack("<I", h3m_data.read(4))
|
quest_begin = h3m_data.read(length)
|
||||||
quest_running = h3m_data.read(length)
|
(length, ) = struct.unpack("<I", h3m_data.read(4))
|
||||||
(length, ) = struct.unpack("<I", h3m_data.read(4))
|
quest_running = h3m_data.read(length)
|
||||||
quest_end = h3m_data.read(length)
|
(length, ) = struct.unpack("<I", h3m_data.read(4))
|
||||||
|
quest_end = h3m_data.read(length)
|
||||||
elif map_data["objects"][object_id]["class"] == 36:
|
elif map_data["objects"][object_id]["class"] == 36:
|
||||||
(radius, ) = struct.unpack("<B", h3m_data.read(1))
|
(radius, ) = struct.unpack("<B", h3m_data.read(1))
|
||||||
h3m_data.read(3) #junk
|
h3m_data.read(3) #junk
|
||||||
|
|
Loading…
Reference in a new issue