Merge pull request #1552 from ExpoSeed/BE/fix-redefinition-error
Fix redefinition error in battle_config.h
This commit is contained in:
commit
171329aabd
3 changed files with 12 additions and 6 deletions
|
@ -1,6 +1,8 @@
|
||||||
#ifndef GUARD_CONSTANTS_BATTLE_CONFIG_H
|
#ifndef GUARD_CONSTANTS_BATTLE_CONFIG_H
|
||||||
#define GUARD_CONSTANTS_BATTLE_CONFIG_H
|
#define GUARD_CONSTANTS_BATTLE_CONFIG_H
|
||||||
|
|
||||||
|
#include "constants/expansion_branches.h"
|
||||||
|
|
||||||
// Species with peculiar battle effects.
|
// Species with peculiar battle effects.
|
||||||
#ifndef POKEMON_EXPANSION
|
#ifndef POKEMON_EXPANSION
|
||||||
#define SPECIES_DIALGA 0
|
#define SPECIES_DIALGA 0
|
||||||
|
|
10
include/constants/expansion_branches.h
Normal file
10
include/constants/expansion_branches.h
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#ifndef GUARD_CONSTANTS_EXPANSION_BRANCHES_H
|
||||||
|
#define GUARD_CONSTANTS_EXPANSION_BRANCHES_H
|
||||||
|
|
||||||
|
// Branch defines: Used by other branches to detect each other.
|
||||||
|
// Each define must be here for each of RHH's branch you have pulled.
|
||||||
|
// e.g. If you have both the battle_engine and pokemon_expansion branch,
|
||||||
|
// then both BATTLE_ENGINE and POKEMON_EXPANSION must be defined here.
|
||||||
|
#define BATTLE_ENGINE
|
||||||
|
|
||||||
|
#endif
|
|
@ -127,12 +127,6 @@
|
||||||
f; \
|
f; \
|
||||||
})
|
})
|
||||||
|
|
||||||
// Branch defines: Used by other branches to detect each other.
|
|
||||||
// Each define must be here for each of RHH's branch you have pulled.
|
|
||||||
// e.g. If you have both the battle_engine and pokemon_expansion branch,
|
|
||||||
// then both BATTLE_ENGINE and POKEMON_EXPANSION must be defined here.
|
|
||||||
#define BATTLE_ENGINE
|
|
||||||
|
|
||||||
#define ROUND_BITS_TO_BYTES(numBits)(((numBits) / 8) + (((numBits) % 8) ? 1 : 0))
|
#define ROUND_BITS_TO_BYTES(numBits)(((numBits) / 8) + (((numBits) % 8) ? 1 : 0))
|
||||||
|
|
||||||
#define DEX_FLAGS_NO (ROUND_BITS_TO_BYTES(NUM_SPECIES))
|
#define DEX_FLAGS_NO (ROUND_BITS_TO_BYTES(NUM_SPECIES))
|
||||||
|
|
Loading…
Reference in a new issue