summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-03 23:02:55 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-03 23:02:55 +0000
commit56d45e029ebc3e406fd1fce37790d2d72dac6536 (patch)
tree9468c27352f73e9186620adbba3e17c07c70f7b1 /src/map/pc.c
parentbd3a5a73ae175a4bbb6095b1fda3266433ac5803 (diff)
downloadhercules-56d45e029ebc3e406fd1fce37790d2d72dac6536.tar.gz
hercules-56d45e029ebc3e406fd1fce37790d2d72dac6536.tar.bz2
hercules-56d45e029ebc3e406fd1fce37790d2d72dac6536.tar.xz
hercules-56d45e029ebc3e406fd1fce37790d2d72dac6536.zip
- Made regen work always, like Hp/Sp Loss, it no longer displays healing numbers as well.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11118 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index b201d3910..8fcac8826 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6886,11 +6886,11 @@ void pc_bleeding (struct map_session_data *sd, unsigned int diff_tick)
//Character regen. Flag is used to know which types of regen can take place.
//&1: HP regen
//&2: SP regen
-void pc_regen (struct map_session_data *sd, unsigned int diff_tick, int flag)
+void pc_regen (struct map_session_data *sd, unsigned int diff_tick)
{
int hp = 0, sp = 0;
- if (sd->hp_regen.value && flag&1) {
+ if (sd->hp_regen.value) {
sd->hp_regen.tick += diff_tick;
while (sd->hp_regen.tick >= sd->hp_regen.rate) {
hp += sd->hp_regen.value;
@@ -6898,7 +6898,7 @@ void pc_regen (struct map_session_data *sd, unsigned int diff_tick, int flag)
}
}
- if (sd->sp_regen.value && flag&2) {
+ if (sd->sp_regen.value) {
sd->sp_regen.tick += diff_tick;
while (sd->sp_regen.tick >= sd->sp_regen.rate) {
sp += sd->sp_regen.value;
@@ -6907,7 +6907,7 @@ void pc_regen (struct map_session_data *sd, unsigned int diff_tick, int flag)
}
if (hp > 0 || sp > 0)
- status_heal(&sd->bl, hp, sp, 2);
+ status_heal(&sd->bl, hp, sp, 0);
return;
}