summaryrefslogtreecommitdiff
path: root/src/map/battleground.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-30 15:34:50 -0300
committershennetsind <ind@henn.et>2013-06-30 15:34:50 -0300
commit19e25a2d18164ede743c79aba0c92b20ac17bdca (patch)
treef8cf124145d70a157c37bb81395d977f97d2f391 /src/map/battleground.c
parent3e54d00ad3e1f6fd56aace6f227c66a5b67eb3ea (diff)
downloadhercules-19e25a2d18164ede743c79aba0c92b20ac17bdca.tar.gz
hercules-19e25a2d18164ede743c79aba0c92b20ac17bdca.tar.bz2
hercules-19e25a2d18164ede743c79aba0c92b20ac17bdca.tar.xz
hercules-19e25a2d18164ede743c79aba0c92b20ac17bdca.zip
Fixed Skill Cooldowns
Special Thanks to Vylow for bringing this to our attention. Also added support for the client-side cooldown left/total feature (packetver 20120604 and newer) Made Possible Thanks to Yommy =3 Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/battleground.c')
-rw-r--r--src/map/battleground.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/map/battleground.c b/src/map/battleground.c
index d54178347..3f0b9ee41 100644
--- a/src/map/battleground.c
+++ b/src/map/battleground.c
@@ -255,7 +255,7 @@ void bg_config_read(void) {
config_setting_t *settings = config_setting_get_elem(data, 0);
config_setting_t *arenas;
const char *delay_var;
- int i, arena_count = 0, total = 0, offline = 0;
+ int i, arena_count = 0, offline = 0;
if( !config_setting_lookup_string(settings, "global_delay_var", &delay_var) )
delay_var = "BG_Delay_Tick";
@@ -391,13 +391,11 @@ void bg_config_read(void) {
bg->arena[i]->fillup_timer = INVALID_TIMER;
bg->arena[i]->pregame_duration = pregame_duration;
bg->arena[i]->fillup_duration = fillup_duration;
-
- total++;
+
}
bg->arenas = arena_count;
}
- ShowStatus("Done reading '"CL_WHITE"%d"CL_RESET"' arenas in '"CL_WHITE"%s"CL_RESET"'.\n", total, config_filename);
config_destroy(&bg_conf);
}
}