diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-21 10:36:26 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-21 10:36:26 +0000 |
commit | c6b0361bd56ee72df8b9b3ee7eca824e0619d407 (patch) | |
tree | 8a178d1eff82e4329685dd8130c9b2364412ce4f /src/map/pc.c | |
parent | 095fe33b1d22e4bc821847b968ac508a983ae50b (diff) | |
download | hercules-c6b0361bd56ee72df8b9b3ee7eca824e0619d407.tar.gz hercules-c6b0361bd56ee72df8b9b3ee7eca824e0619d407.tar.bz2 hercules-c6b0361bd56ee72df8b9b3ee7eca824e0619d407.tar.xz hercules-c6b0361bd56ee72df8b9b3ee7eca824e0619d407.zip |
- Added status_calc_life to properly calculate hp/max_hp as a ratio taking into accounts overflows (and for now also avoids divisions by 0). Applied this function around clif.c, mob.c and pet.c
- Implemented the correct walk-speed bonus from the Bard/Dancer spirit.
- Added a few error messages in case something goes wrong in the new auth db system.
- Fixed logarithmic drops turning 0% drop rates into 100%.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12225 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index d1bb81c3e..57f68f201 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -842,7 +842,8 @@ int pc_reg_received(struct map_session_data *sd) map_addiddb(&sd->bl); map_delnickdb(sd->status.char_id, sd->status.name); - chrif_auth_finished(sd); + if (!chrif_auth_finished(sd)) + ShowError("pc_reg_received: Failed to properly remove player %d:%d from logging db!\n", sd->status.account_id, sd->status.char_id); status_calc_pc(sd,1); chrif_scdata_request(sd->status.account_id, sd->status.char_id); |