diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-18 14:43:04 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-18 14:43:04 +0000 |
commit | 53e154561caec018e734900a0a4e53cf35e3f2c0 (patch) | |
tree | 7a7bc225f826d2b913ae340dddddc6b9b8031d58 /src/map/clif.c | |
parent | ef916748dd182bcff937f276df87ccaa9fe3e3d1 (diff) | |
download | hercules-53e154561caec018e734900a0a4e53cf35e3f2c0.tar.gz hercules-53e154561caec018e734900a0a4e53cf35e3f2c0.tar.bz2 hercules-53e154561caec018e734900a0a4e53cf35e3f2c0.tar.xz hercules-53e154561caec018e734900a0a4e53cf35e3f2c0.zip |
- Reloading scripts will no longer eliminate mobs with no respawn data. Watch out for duplicating Treasure Boxes?
- Some cleaning of npc_final
- Made speed_add_rate a linearly stacking increase.
- Corrected a possible overflow when using show_mob_info to display the mob's up as a percent.
- Corrected the documentation for checkoption/checkoption1/checkoption2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8792 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 3c9e697ac..67c85504c 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -7861,7 +7861,11 @@ int clif_charnameack (int fd, struct block_list *bl) if (battle_config.show_mob_info&1)
str_p += sprintf(str_p, "HP: %u/%u | ", md->status.hp, md->status.max_hp);
if (battle_config.show_mob_info&2)
- str_p += sprintf(str_p, "HP: %d%% | ", 100*md->status.hp/md->status.max_hp);
+
+ str_p += sprintf(str_p, "HP: %d%% | ",
+ md->status.max_hp > 10000?
+ md->status.hp/(md->status.max_hp/100):
+ 100*md->status.hp/md->status.max_hp);
//Even thought mobhp ain't a name, we send it as one so the client
//can parse it. [Skotlex]
if (str_p != mobhp) {
|