diff options
author | Your Name <hemagx2@gmail.com> | 2015-12-12 21:44:27 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-12-13 03:55:41 +0100 |
commit | f102c913b2aa093ef40c7846e25850ebb1106d71 (patch) | |
tree | 8965bde6164baa50121171c7291ea438e11d8503 /src/map/battle.h | |
parent | bb214d4651c9c9aa9599f50cb5de52059176a87f (diff) | |
download | hercules-f102c913b2aa093ef40c7846e25850ebb1106d71.tar.gz hercules-f102c913b2aa093ef40c7846e25850ebb1106d71.tar.bz2 hercules-f102c913b2aa093ef40c7846e25850ebb1106d71.tar.xz hercules-f102c913b2aa093ef40c7846e25850ebb1106d71.zip |
- Fixed #723 now it's possible to retrieve Battle Config Settings from plugins into scripts
- Fixed Possible Crash when null parse function pointer passed to HPMi->addConf
- Now it's possible to use same parse function for all config entries
- Now Battle Config entries must have a return function
Diffstat (limited to 'src/map/battle.h')
-rw-r--r-- | src/map/battle.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/battle.h b/src/map/battle.h index 68a427e72..595ed32bb 100644 --- a/src/map/battle.h +++ b/src/map/battle.h @@ -630,8 +630,8 @@ struct battle_interface { /* - battle_config */ int (*config_read) (const char *cfgName); void (*config_set_defaults) (void); - int (*config_set_value) (const char* w1, const char* w2); - int (*config_get_value) (const char* w1); + int (*config_set_value) (const char *w1, const char *w2); + bool (*config_get_value) (const char *w1, int *value); void (*config_adjust) (void); /* ----------------------------------------- */ /* picks a random enemy within the specified range */ |