summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-19 12:25:38 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-19 12:25:38 +0000
commit01f8804d4eebaae80443a1613fc3ebc92adf1de0 (patch)
tree54fd69620d3320369d4f43d9ae089c7efab06e4f /src/map/status.c
parentbe5ec4390952c7b7cb2fef5975318af228bdf992 (diff)
downloadhercules-01f8804d4eebaae80443a1613fc3ebc92adf1de0.tar.gz
hercules-01f8804d4eebaae80443a1613fc3ebc92adf1de0.tar.bz2
hercules-01f8804d4eebaae80443a1613fc3ebc92adf1de0.tar.xz
hercules-01f8804d4eebaae80443a1613fc3ebc92adf1de0.zip
Fixed bugreport:6498 sp respawn restart_sp_rate setting is now fully respected.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16668 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 9f4692cd3..82a17965a 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2784,6 +2784,9 @@ int status_calc_pc_(struct map_session_data* sd, bool first)
status->hp = 1;
status->sp = status->max_sp * battle_config.restart_sp_rate /100;
+
+ if( !status->sp ) /* the minimum for the respawn setting is SP:1 */
+ status->sp = 1;
}
// ----- MISC CALCULATION -----
@@ -3077,7 +3080,7 @@ int status_calc_pc_(struct map_session_data* sd, bool first)
}
calculating = 0;
-
+
return 0;
}