ref: c19dcb996c26111d5ccda8cb783ccbb15348992b
parent: 36a0acbde17ede24152840257e8f12918cd9c6b6
author: yenatch <[email protected]>
date: Sun Mar 17 20:30:37 EDT 2013
Fix unused function parse_map_header_by_id 'Dunno' exception always fired even if parameters were correct
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -6201,7 +6201,7 @@
elif len(args) == 1 and type(args[0]) == str:
map_group = int(args[0].split(".")[0])
map_id = int(args[0].split(".")[1])
- else:
+ elif map_group == None and map_id == None:
raise Exception("dunno what to do with input")
offset = map_names[map_group]["offset"]
map_header_offset = offset + ((map_id - 1) * map_header_byte_size)