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:
|
||||
raise NotImplementedError
|
||||
|
||||
(time_limit, ) = struct.unpack("<I", h3m_data.read(4))
|
||||
(length, ) = struct.unpack("<I", h3m_data.read(4))
|
||||
quest_begin = h3m_data.read(length)
|
||||
(length, ) = struct.unpack("<I", h3m_data.read(4))
|
||||
quest_running = h3m_data.read(length)
|
||||
(length, ) = struct.unpack("<I", h3m_data.read(4))
|
||||
quest_end = h3m_data.read(length)
|
||||
if quest:
|
||||
(time_limit, ) = struct.unpack("<I", h3m_data.read(4))
|
||||
(length, ) = struct.unpack("<I", h3m_data.read(4))
|
||||
quest_begin = h3m_data.read(length)
|
||||
(length, ) = struct.unpack("<I", h3m_data.read(4))
|
||||
quest_running = 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:
|
||||
(radius, ) = struct.unpack("<B", h3m_data.read(1))
|
||||
h3m_data.read(3) #junk
|
||||
|
|
Loading…
Reference in a new issue