(shoo): Remove the arbitrary limit of 999 people to be shot.

This commit is contained in:
Markus Armbruster 2005-08-30 17:47:40 +00:00
parent 4474c7b5c1
commit 41c67326bb

View file

@ -68,12 +68,10 @@ shoo(void)
item = ip->i_vtype; item = ip->i_vtype;
if (!snxtsct(&nstr, player->argp[2])) if (!snxtsct(&nstr, player->argp[2]))
return RET_SYN; return RET_SYN;
sprintf(prompt, "number of %s to shoot (max 999)? ", ip->i_name); sprintf(prompt, "number of %s to shoot? ", ip->i_name);
p = getstarg(player->argp[3], prompt, buf); p = getstarg(player->argp[3], prompt, buf);
if (p == 0 || (targets = atoi(p)) <= 0) if (p == 0 || (targets = atoi(p)) <= 0)
return RET_SYN; return RET_SYN;
if (targets > 999)
targets = 999;
while (nxtsct(&nstr, &sect)) { while (nxtsct(&nstr, &sect)) {
if (!player->owner) if (!player->owner)
continue; continue;