Browse Source

Removed a redundant death check in recallall

This check is also done in pc_setpos. It additionally ignores one of the configurations by doing this here.
Lemongrass3110 9 năm trước cách đây
mục cha
commit
0a92487d19
1 tập tin đã thay đổi với 0 bổ sung4 xóa
  1. 0 4
      src/map/atcommand.c

+ 0 - 4
src/map/atcommand.c

@@ -3605,10 +3605,6 @@ ACMD_FUNC(recallall)
 			if (pl_sd->bl.m >= 0 && map[pl_sd->bl.m].flag.nowarp && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE))
 				count++;
 			else {
-				if (pc_isdead(pl_sd)) { //Wake them up
-					pc_setstand(pl_sd, true);
-					pc_setrestartvalue(pl_sd,1);
-				}
 				pc_setpos(pl_sd, sd->mapindex, sd->bl.x, sd->bl.y, CLR_RESPAWN);
 			}
 		}