Pārlūkot izejas kodu

Merge pull request #11 from cannelle/patch-1

Fix for incorrect mob_warpslave_sub and map_quit clear values.
Cydh Ramdh 11 gadi atpakaļ
vecāks
revīzija
e52fc947f7
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1 1
      src/map/map.c
  2. 1 1
      src/map/mob.c

+ 1 - 1
src/map/map.c

@@ -1709,7 +1709,7 @@ int map_quit(struct map_session_data *sd) {
 		unit_remove_map(&sd->ed->bl,CLR_TELEPORT);
 	}
 
-	unit_remove_map_pc(sd,CLR_TELEPORT);
+	unit_remove_map_pc(sd,CLR_RESPAWN);
 
 	if( map[sd->bl.m].instance_id ) { // Avoid map conflicts and warnings on next login
 		int16 m;

+ 1 - 1
src/map/mob.c

@@ -2815,7 +2815,7 @@ int mob_warpslave_sub(struct block_list *bl,va_list ap)
 		return 0;
 
 	map_search_freecell(master, 0, &x, &y, range, range, 0);
-	unit_warp(&md->bl, master->m, x, y,CLR_RESPAWN);
+	unit_warp(&md->bl, master->m, x, y,CLR_TELEPORT);
 	return 1;
 }