summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extras/crystal.py2
-rw-r--r--preprocessor.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/extras/crystal.py b/extras/crystal.py
index 2d0c12fea..ecda3d338 100644
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -3267,7 +3267,7 @@ class ItemFragment(Command):
"""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 = {
diff --git a/preprocessor.py b/preprocessor.py
index 42f64a01e..782ff80fb 100644
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -443,7 +443,7 @@ def macro_translator(macro, token, line):
# "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