Pārlūkot izejas kodu

Merge pull request #1201 from rathena/cleanup/recallall-redundant-deathcheck

Removed a redundant death check in atcommand recallall.
* This check is also done in pc_setpos.
-- It additionally corrects recallall ignoring a configuration by doing the check in the atcommand.
Aleos 9 gadi atpakaļ
vecāks
revīzija
e5af11309b
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);
 			}
 		}