Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
0a92487d19
1 mainītis faili ar 0 papildinājumiem un 4 dzēšanām
  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);
 			}
 		}