diff options
author | AnnieRuru <jeankof@ymail.com> | 2015-12-16 13:16:41 +0800 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-01-05 15:34:45 +0100 |
commit | f836b4a752de8fd6702fab541a5be25fbd26c0e2 (patch) | |
tree | 29cd65058022f903bb45e265150dfdd6490caf77 /src | |
parent | 7d69fa553131b44752f6b7ea0087617f885b8b8a (diff) | |
download | hercules-f836b4a752de8fd6702fab541a5be25fbd26c0e2.tar.gz hercules-f836b4a752de8fd6702fab541a5be25fbd26c0e2.tar.bz2 hercules-f836b4a752de8fd6702fab541a5be25fbd26c0e2.tar.xz hercules-f836b4a752de8fd6702fab541a5be25fbd26c0e2.zip |
Fix battle config Hp/Sp overflow value
- client can't handle value over 21474836
- SQL also can't save value over 16777215 due to mediumint unsigned
Closes #965 as merged
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/map/battle.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 7ceefcf49..201cd6a00 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -2,7 +2,7 @@ * This file is part of Hercules. * http://herc.ws - http://github.com/HerculesWS/Hercules * - * Copyright (C) 2012-2015 Hercules Dev Team + * Copyright (C) 2012-2016 Hercules Dev Team * Copyright (C) Athena Dev Teams * * Hercules is free software: you can redistribute it and/or modify @@ -6925,8 +6925,8 @@ static const struct battle_data { { "max_walk_speed", &battle_config.max_walk_speed, 300, 100, 100*DEFAULT_WALK_SPEED, }, { "max_lv", &battle_config.max_lv, 99, 0, MAX_LEVEL, }, { "aura_lv", &battle_config.aura_lv, 99, 0, INT_MAX, }, - { "max_hp", &battle_config.max_hp, 32500, 100, 1000000000, }, - { "max_sp", &battle_config.max_sp, 32500, 100, 1000000000, }, + { "max_hp", &battle_config.max_hp, 1000000, 100, 21474836, }, + { "max_sp", &battle_config.max_sp, 1000000, 100, 21474836, }, { "max_cart_weight", &battle_config.max_cart_weight, 8000, 100, 1000000, }, { "max_parameter", &battle_config.max_parameter, 99, 10, 10000, }, { "max_baby_parameter", &battle_config.max_baby_parameter, 80, 10, 10000, }, |