diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-06 15:34:18 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-06 15:34:18 +0000 |
commit | 8bb15a3eb1653dad66aec5205163a2a4bfa2f149 (patch) | |
tree | 589eca20ba6d31dc41a318e8344ca62dea6e7bb6 /src/map/clif.c | |
parent | 64f4cc701fb78e585514eaa894dfd98cbbf224bf (diff) | |
download | hercules-8bb15a3eb1653dad66aec5205163a2a4bfa2f149.tar.gz hercules-8bb15a3eb1653dad66aec5205163a2a4bfa2f149.tar.bz2 hercules-8bb15a3eb1653dad66aec5205163a2a4bfa2f149.tar.xz hercules-8bb15a3eb1653dad66aec5205163a2a4bfa2f149.zip |
- Corrected Aliza card's item_db line.
- Capped clif_heal's heal field (the argument received is int, but the packet field is short, meaning that if the heal is high enough, the client would receive a negative heal amount).
- Some indentation fixes.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10165 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index fdba61dba..615b5fee3 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -4962,7 +4962,7 @@ int clif_heal(int fd,int type,int val) WFIFOHEAD(fd,packet_len(0x13d)); WFIFOW(fd,0)=0x13d; WFIFOW(fd,2)=type; - WFIFOW(fd,4)=val; + WFIFOW(fd,4)=cap_value(val,0,SHRT_MAX); WFIFOSET(fd,packet_len(0x13d)); return 0; |