summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-29 11:28:13 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-29 11:28:13 +0000
commit49a385c135d3012abb08e1ddc6a301c89f0e3a54 (patch)
tree62744fb0092b41bdf6e864de85b9ab5548c0f849 /src/map
parentc369d1fab6d576c203bbfea30cc619490fe865ce (diff)
downloadhercules-49a385c135d3012abb08e1ddc6a301c89f0e3a54.tar.gz
hercules-49a385c135d3012abb08e1ddc6a301c89f0e3a54.tar.bz2
hercules-49a385c135d3012abb08e1ddc6a301c89f0e3a54.tar.xz
hercules-49a385c135d3012abb08e1ddc6a301c89f0e3a54.zip
* Insignificant code tweaks: removal of excess function declarations and self assignments.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14520 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mob.c1
-rw-r--r--src/map/pc.c4
-rw-r--r--src/map/pc.h1
-rw-r--r--src/map/script.c2
-rw-r--r--src/map/skill.c2
-rw-r--r--src/map/unit.c2
6 files changed, 2 insertions, 10 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index a52c6f087..edea51008 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -82,7 +82,6 @@ const int mob_splendide[5] = { 1991, 1992, 1993, 1994, 1995 };
*------------------------------------------*/
static int mob_makedummymobdb(int);
static int mob_spawn_guardian_sub(int tid, unsigned int tick, int id, intptr data);
-int mobskill_use(struct mob_data *md,unsigned int tick,int event);
int mob_skillid2skillidx(int class_,int skillid);
/*==========================================
diff --git a/src/map/pc.c b/src/map/pc.c
index 902463cb0..deb266e78 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5227,8 +5227,8 @@ int pc_resetlvl(struct map_session_data* sd,int type)
sd->status.skill_point=0;
sd->status.base_level=1;
sd->status.job_level=1;
- sd->status.base_exp=sd->status.base_exp=0;
- sd->status.job_exp=sd->status.job_exp=0;
+ sd->status.base_exp=0;
+ sd->status.job_exp=0;
if(sd->sc.option !=0)
sd->sc.option = 0;
diff --git a/src/map/pc.h b/src/map/pc.h
index 16c8ec3fc..359b9ca90 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -570,7 +570,6 @@ int pc_setpos(struct map_session_data* sd, unsigned short mapindex, int x, int y
int pc_setsavepoint(struct map_session_data*,short,int,int);
int pc_randomwarp(struct map_session_data *sd,clr_type type);
int pc_memo(struct map_session_data* sd, int pos);
-int pc_remove_map(struct map_session_data *sd,clr_type clrtype);
int pc_checkadditem(struct map_session_data*,int,int);
int pc_inventoryblank(struct map_session_data*);
diff --git a/src/map/script.c b/src/map/script.c
index abc183a6a..722214908 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -3066,8 +3066,6 @@ int run_func(struct script_state *st)
/*==========================================
* script execution
*------------------------------------------*/
-void run_script_main(struct script_state *st);
-
void run_script(struct script_code *rootscript,int pos,int rid,int oid)
{
struct script_state *st;
diff --git a/src/map/skill.c b/src/map/skill.c
index 6f34ae531..dbdfbe35a 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -180,9 +180,7 @@ int skill_tree_get_max(int id, int b_class)
return skill_get_max(id);
}
-int skill_castend_damage_id( struct block_list* src, struct block_list *bl,int skillid,int skilllv,unsigned int tick,int flag );
int skill_frostjoke_scream(struct block_list *bl,va_list ap);
-int status_change_timer_sub(struct block_list *bl, va_list ap);
int skill_attack_area(struct block_list *bl,va_list ap);
struct skill_unit_group *skill_locate_element_field(struct block_list *bl); // [Skotlex]
int skill_graffitiremover(struct block_list *bl, va_list ap); // [Valaris]
diff --git a/src/map/unit.c b/src/map/unit.c
index d217177c4..b9a72bc62 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1305,8 +1305,6 @@ int unit_skilluse_pos2( struct block_list *src, short skill_x, short skill_y, sh
return 1;
}
-static int unit_attack_timer(int tid, unsigned int tick, int id, intptr data);
-
int unit_stop_attack(struct block_list *bl)
{
struct unit_data *ud = unit_bl2ud(bl);