Selaa lähdekoodia

- Fixed compiltation error ~.~ I was sure I compiled before the previous commit...
- Corrected a null pointer error when a non-player uses amplify magic power.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9743 54d463be-8e91-2dee-dedb-b68131a5f0ec

skotlex 18 vuotta sitten
vanhempi
commit
59faa0164c
3 muutettua tiedostoa jossa 3 lisäystä ja 16 poistoa
  1. 1 4
      src/char_sql/int_homun.c
  2. 1 1
      src/map/npc.c
  3. 1 11
      src/map/skill.c

+ 1 - 4
src/char_sql/int_homun.c

@@ -219,7 +219,6 @@ int inter_delete_homunculus(int hom_id)
 	{
 		ShowSQL("DB error - %s\n",mysql_error(&mysql_handle));
 		ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql);
-		mapif_homunculus_deleted(fd, 0);
 		return 0;
 	}
 	
@@ -228,17 +227,15 @@ int inter_delete_homunculus(int hom_id)
 	{
 		ShowSQL("DB error - %s\n",mysql_error(&mysql_handle));
 		ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql);
-		mapif_homunculus_deleted(fd, 0);
 		return 0;
 	}
-	mapif_homunculus_deleted(fd, 1);
 	return 1;
 }
 
 int mapif_delete_homunculus(int fd)
 {
 	RFIFOHEAD(fd);
-	inter_delete_homunculus(RFIFOL(fd,2));
+	mapif_homunculus_deleted(fd, inter_delete_homunculus(RFIFOL(fd,2)));
 }
 
 int mapif_rename_homun_ack(int fd, int account_id, int char_id, unsigned char flag, char *name){

+ 1 - 1
src/map/npc.c

@@ -1012,7 +1012,7 @@ int npc_touch_areanpc2(struct block_list *bl)
 int npc_check_areanpc(int flag,int m,int x,int y,int range)
 {
 	int i;
-	int x0,y0,y0,y1;
+	int x0,y0,x1,y1;
 	int xs,ys;
 
 	if (range < 0) return 0;

+ 1 - 11
src/map/skill.c

@@ -6245,7 +6245,7 @@ int skill_castend_pos2 (struct block_list *src, int x, int y, int skillid, int s
 	}
 
 	if (sc && sc->data[SC_MAGICPOWER].timer != -1)
-		status_change_end(&sd->bl,SC_MAGICPOWER,-1);
+		status_change_end(src,SC_MAGICPOWER,-1);
 
 	if (sd && !(flag&1) && sd->state.arrow_atk) //Consume arrow if a ground skill was not invoked. [Skotlex]
 		battle_consume_ammo(sd, skillid, skilllv);
@@ -7814,16 +7814,6 @@ static int skill_check_condition_mob_master_sub (struct block_list *bl, va_list
 	return 1;
 }
 
-static int skill_check_condition_hermod_sub(struct block_list *bl,va_list ap)
-{
-	struct npc_data *nd;
-	nd=(struct npc_data*)bl;
-
-	if (nd->bl.subtype == WARP)
-		return 1;
-	return 0;
-}
-
 /*==========================================
  * Determines if a given skill should be made to consume ammo 
  * when used by the player. [Skotlex]