Kaynağa Gözat

* Insignificant code tweaks: removal of excess function declarations and self assignments.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14520 54d463be-8e91-2dee-dedb-b68131a5f0ec
ai4rei 14 yıl önce
ebeveyn
işleme
b870941ee0
6 değiştirilmiş dosya ile 2 ekleme ve 10 silme
  1. 0 1
      src/map/mob.c
  2. 2 2
      src/map/pc.c
  3. 0 1
      src/map/pc.h
  4. 0 2
      src/map/script.c
  5. 0 2
      src/map/skill.c
  6. 0 2
      src/map/unit.c

+ 0 - 1
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);
 
 /*==========================================

+ 2 - 2
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;
 

+ 0 - 1
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*);

+ 0 - 2
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;

+ 0 - 2
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]

+ 0 - 2
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);