Fix cede not prompt twice for its first argument
This commit is contained in:
parent
be41e70fa8
commit
03937d6c58
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,8 @@ cede(void)
|
||||||
struct natstr *natp;
|
struct natstr *natp;
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
|
|
||||||
if ((p = getstarg(player->argp[1], "Cede what? ", buf)) == 0)
|
p = getstarg(player->argp[1], "Cede what? ", buf);
|
||||||
|
if (!p || !*p)
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
if (snxtsct(&ns, p))
|
if (snxtsct(&ns, p))
|
||||||
is_sector = 1;
|
is_sector = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue