summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-30 07:07:59 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-30 07:07:59 +0000
commit9df3b0b2c5469afaba385dbfdadc973830c00ce2 (patch)
treea5c33b6796196f1c6b35c6340a3f6b9e8699c4ca /src/map/status.c
parent079b0157248c4c67618717288164ace6053c7d69 (diff)
downloadhercules-9df3b0b2c5469afaba385dbfdadc973830c00ce2.tar.gz
hercules-9df3b0b2c5469afaba385dbfdadc973830c00ce2.tar.bz2
hercules-9df3b0b2c5469afaba385dbfdadc973830c00ce2.tar.xz
hercules-9df3b0b2c5469afaba385dbfdadc973830c00ce2.zip
[Fixed]
- Typo in mob_dead causing crash. Thanks to reddozen and his gang for testing. - Compilation warnings git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6835 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 952045c33..eaa6b8c72 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -549,18 +549,18 @@ int status_damage(struct block_list *src,struct block_list *target,int hp, int s
}
status_change_end(target, SC_DEVOTION, -1);
}
- if(sc->data[SC_DANCING].timer != -1 && hp > status->max_hp>>2)
+ if(sc->data[SC_DANCING].timer != -1 && hp > (signed int)status->max_hp>>2)
skill_stop_dancing(target);
}
unit_skillcastcancel(target, 2);
}
- if (hp >= status->hp) {
+ if (hp >= (signed int)status->hp) {
if (flag&2) return 0;
hp = status->hp;
}
- if (sp > status->sp) {
+ if (sp > (signed int)status->sp) {
if (flag&2) return 0;
sp = status->sp;
}
@@ -621,7 +621,7 @@ int status_heal(struct block_list *bl,int hp,int sp, int flag)
hp = 0;
- if(hp > status->max_hp - status->hp)
+ if(hp > (signed int)(status->max_hp - status->hp))
hp = status->max_hp - status->hp;
}
@@ -631,7 +631,7 @@ int status_heal(struct block_list *bl,int hp,int sp, int flag)
}
if(sp) {
- if(sp > status->max_sp - status->sp)
+ if(sp > (signed int)(status->max_sp - status->sp))
sp = status->max_sp - status->sp;
}