summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-12-31 14:49:50 -0500
committerGitHub <noreply@github.com>2020-12-31 14:49:50 -0500
commitc7bbd485c3103c6a51d15f6e0081922d3c14d42d (patch)
tree1239602708be935aa710d744dfa76ac84728fc04 /include
parent9282d717489805b4e6005b29a38ecb9f8c532ce2 (diff)
parented3bb5b080e0f53461d46e05d0b078a44f8c5578 (diff)
Merge pull request #818 from GriffinRichards/deadname
Remove deadnaming, sync BgEvent and 2 function names
Diffstat (limited to 'include')
-rw-r--r--include/global.fieldmap.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/include/global.fieldmap.h b/include/global.fieldmap.h
index 1bba31073..036ccfb14 100644
--- a/include/global.fieldmap.h
+++ b/include/global.fieldmap.h
@@ -94,23 +94,16 @@ struct CoordEvent
struct BgEvent
{
- /*0x00*/u16 x;
- /*0x02*/u16 y;
- /*0x04*/u8 elevation;
- /*0x05*/u8 kind;
- /*0x08*/union { // carried over from diego's FR/LG work, seems to be the same struct
- // in gen 3, "kind" (0x3 in BgEvent struct) determines the method to read the union.
+ u16 x, y;
+ u8 elevation;
+ u8 kind; // The "kind" field determines how to access bgUnion union below.
+ union {
u8 *script;
-
- // hidden item type
struct {
u16 item;
- u16 hiddenItemId; // flag offset to determine flag lookup
+ u16 hiddenItemId;
} hiddenItem;
-
- // secret base type
u32 secretBaseId;
-
} bgUnion;
};