summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-16 12:21:26 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-16 12:21:26 +0000
commit236f3f46336cf648284b28a6b4bf7ffcec27fbd4 (patch)
treef9150ffcf2b1e746dd546d1f63086b501aec7920 /src/map/clif.c
parent4256612cd7254d789cb90daa0e49f82e67dc0226 (diff)
downloadhercules-236f3f46336cf648284b28a6b4bf7ffcec27fbd4.tar.gz
hercules-236f3f46336cf648284b28a6b4bf7ffcec27fbd4.tar.bz2
hercules-236f3f46336cf648284b28a6b4bf7ffcec27fbd4.tar.xz
hercules-236f3f46336cf648284b28a6b4bf7ffcec27fbd4.zip
* Updated jA's dummy socket to mod1137
* Added jA's ddos protection system * Moved stall_time's reading to packet_athena.conf git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1237 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index a44979ff4..2e1a7e1e7 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -973,7 +973,7 @@ int clif_mob_equip(struct mob_data *md, int nameid) {
*/
static int clif_mob0078(struct mob_data *md, unsigned char *buf)
{
- int level;
+ int level, i;
memset(buf,0,packet_len_table[0x78]);
@@ -986,7 +986,7 @@ static int clif_mob0078(struct mob_data *md, unsigned char *buf)
WBUFW(buf,10)=md->opt2;
WBUFW(buf,12)=md->option;
WBUFW(buf,14)=mob_get_viewclass(md->class_);
- if((mob_get_viewclass(md->class_) <= 23) || (mob_get_viewclass(md->class_) == 812) || (mob_get_viewclass(md->class_) >= 4001)) {
+ if((i=mob_get_viewclass(md->class_)) <= 23 || i == 812 || i >= 4001) {
WBUFW(buf,12)|=mob_db[md->class_].option;
WBUFW(buf,16)=mob_get_hair(md->class_);
WBUFW(buf,18)=mob_get_weapon(md->class_);
@@ -1360,7 +1360,7 @@ int clif_spawnmob(struct mob_data *md)
nullpo_retr(0, md);
- if (mob_get_viewclass(md->class_) > 23 ) {
+ if (mob_get_viewclass(md->class_) > 23) {
memset(buf,0,packet_len_table[0x7c]);
WBUFW(buf,0)=0x7c;