Moved BATTLE_ENGINE define to global.h to fix reading from other branches

This commit is contained in:
Eduardo Quezada D'Ottone 2020-11-09 12:45:31 -03:00
parent 8e30647ca1
commit df4d927e31
2 changed files with 4 additions and 2 deletions

View file

@ -1,8 +1,6 @@
#ifndef GUARD_CONSTANTS_BATTLE_CONFIG_H
#define GUARD_CONSTANTS_BATTLE_CONFIG_H
#define BATTLE_ENGINE
// Species with peculiar battle effects.
#ifndef POKEMON_EXPANSION
#define SPECIES_DIALGA 0

View file

@ -118,6 +118,10 @@
f; \
})
// Branch defines:
// Used by other branches to detect each other.
#define BATTLE_ENGINE
#define ROUND_BITS_TO_BYTES(numBits)(((numBits) / 8) + (((numBits) % 8) ? 1 : 0))
#define DEX_FLAGS_NO (ROUND_BITS_TO_BYTES(NUM_SPECIES))