shithub: pokecrystal

Download patch

ref: 00b36922d20fd171f7708a842a19219d743a22e6
parent: ddc4a929058ff103cac5743ca39bb8e4b520ee90
author: Bryan Bishop <[email protected]>
date: Wed Aug 28 12:13:46 EDT 2013

remove a special case for MoneyByteParam

The preprocessor should ideally have no special cases for macros at all
in the first place. But it does. This one doesn't seem to be necessary.

--- a/preprocessor.py
+++ b/preprocessor.py
@@ -498,8 +498,6 @@
             elif param_klass.byte_type == "dw":
                 if param_klass.size == 2:
                     allowed_length += 1 # just label
-                elif param_klass == MoneyByteParam:
-                    allowed_length += 1
                 elif param_klass.size == 3:
                     allowed_length += 2 # bank and label
                 else: