ref: a049ef74f88a98a0925f5b918578608945445c8e
parent: 611016ae406522a43cd3d75a9f24f5e8f68a02b4
author: Bryan Bishop <[email protected]>
date: Wed May 16 17:16:28 EDT 2012
use db instead of item_frag on ItemFragment remote chunks
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -3267,7 +3267,7 @@
"""used by ItemFragmentParam and PeopleEvent
(for items placed on a map)"""
size = 2
- macro_name = "item_frag"
+ macro_name = "db"
base_label = "ItemFragment_"
override_byte_check = True
param_types = {
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -443,7 +443,7 @@
# "db" is a macro because of TextEndingCommand
# rgbasm can handle "db" so no preprocessing is required
# (don't check its param count)
- if macro.macro_name == "db" and macro == TextEndingCommand:
+ if macro.macro_name == "db" and macro in [TextEndingCommand, ItemFragment]:
sys.stdout.write(original_line)
return