summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-01-12 14:26:33 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-01-12 14:26:33 +0000
commit10031f64176391ff687bb67c9ac888db47b7493b (patch)
tree93997f3b4aae5df64a7270c5c4ffb16cdf86d8dd /src/map/status.c
parent2b352fbed94714c290c86a7b801892ae1bae46df (diff)
downloadhercules-10031f64176391ff687bb67c9ac888db47b7493b.tar.gz
hercules-10031f64176391ff687bb67c9ac888db47b7493b.tar.bz2
hercules-10031f64176391ff687bb67c9ac888db47b7493b.tar.xz
hercules-10031f64176391ff687bb67c9ac888db47b7493b.zip
Added regen_db to reduce hp/sp processing delays (bugreport:2256).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13443 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 9806a214a..189c70e68 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -7461,9 +7461,6 @@ static int status_natural_heal(struct block_list* bl, va_list args)
struct map_session_data *sd;
int val,rate,bonus = 0,flag;
- if (!(bl->type&BL_REGEN))
- return 0;
-
regen = status_get_regen_data(bl);
if (!regen) return 0;
status = status_get_status_data(bl);
@@ -7647,7 +7644,7 @@ static int status_natural_heal(struct block_list* bl, va_list args)
static int status_natural_heal_timer(int tid, unsigned int tick, int id, intptr data)
{
natural_heal_diff_tick = DIFF_TICK(tick,natural_heal_prev_tick);
- map_foreachiddb(status_natural_heal);
+ map_foreachregen(status_natural_heal);
natural_heal_prev_tick = tick;
return 0;
}