diff options
author | Haru <haru@dotalux.com> | 2014-05-16 16:23:47 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-05-16 16:23:47 +0200 |
commit | d350bfeb9cc310ec329d968fc57bf4183b7cb527 (patch) | |
tree | 9fc7cec46f1e4f19cfd8f36483bd106198e23f99 /src/map/map.h | |
parent | fddd0a68178da57e0416722ee7c003eab7167ac4 (diff) | |
download | hercules-d350bfeb9cc310ec329d968fc57bf4183b7cb527.tar.gz hercules-d350bfeb9cc310ec329d968fc57bf4183b7cb527.tar.bz2 hercules-d350bfeb9cc310ec329d968fc57bf4183b7cb527.tar.xz hercules-d350bfeb9cc310ec329d968fc57bf4183b7cb527.zip |
Changed battle_config definition to extern to avoid mistakes in plugins
- This avoids plugins incorrectly using battle_config (with unreliable
results) instead of using the proper interface, battle->bc.
- Edited various #defines to use battle->bc instead of battle_config so
that they can work perperly in plugins as well.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/map.h')
-rw-r--r-- | src/map/map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.h b/src/map/map.h index 73ef4bb41..099370b7a 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -26,7 +26,7 @@ enum E_MAPSERVER_ST { }; #define MAX_NPC_PER_MAP 512 -#define AREA_SIZE (battle_config.area_size) +#define AREA_SIZE (battle->bc->area_size) #define DAMAGELOG_SIZE 30 #define LOOTITEM_SIZE 10 #define MAX_MOBSKILL 50 |