summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-07 16:17:01 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-07 16:17:01 +0000
commit1b73b82ea629ff1e69fc2d6094c27e9e32229a84 (patch)
treeae09928b655e5e706a9560eefdde38372beb366f /src/map/pc.c
parente60b722daee5105cf5ba2ef58d6de827def30126 (diff)
downloadhercules-1b73b82ea629ff1e69fc2d6094c27e9e32229a84.tar.gz
hercules-1b73b82ea629ff1e69fc2d6094c27e9e32229a84.tar.bz2
hercules-1b73b82ea629ff1e69fc2d6094c27e9e32229a84.tar.xz
hercules-1b73b82ea629ff1e69fc2d6094c27e9e32229a84.zip
- Fixed map_foreachiddb and map_foreachpc so they don't encapsulate the variable arguments into a double va_arg list. Thanks to the Ultra Mage for the tip.
- Cleaned up the clif_hate/mob_info functions with the correct fields/usage as explained by Rayce. - Implemented clif_feel_hate_reset packet to properly display the Angel of the Sun/Moon/Stars, thanks again to Rayce for the relevant information. - LP will again block all land-stuff from being placed down on top of it for the exception of Song/Dance/Encores. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9162 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 818bd1b42..07b387d1f 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -775,7 +775,7 @@ int pc_set_hate_mob(struct map_session_data *sd, int pos, struct block_list *bl)
return 0;
if (sd->hate_mob[pos] != -1)
{ //Can't change hate targets.
- clif_hate_mob(sd,pos,sd->hate_mob[pos]); //Display current
+ clif_hate_info(sd, pos, sd->hate_mob[pos], 0); //Display current
return 0;
}
@@ -789,7 +789,7 @@ int pc_set_hate_mob(struct map_session_data *sd, int pos, struct block_list *bl)
}
sd->hate_mob[pos] = class_;
pc_setglobalreg(sd,hate_var[pos],class_+1);
- clif_hate_mob(sd,pos,class_);
+ clif_hate_info(sd, pos, class_, 1);
return 1;
}
@@ -6870,7 +6870,7 @@ int pc_setsavepoint(struct map_session_data *sd, short mapindex,int x,int y)
*------------------------------------------
*/
static int last_save_id=0,save_flag=0;
-static int pc_autosave_sub(DBKey key,void * data,va_list app)
+static int pc_autosave_sub(DBKey key,void * data,va_list ap)
{
struct map_session_data *sd = (TBL_PC*)data;