Simplify execute(): use getstarg() instead of getstring()
This commit is contained in:
parent
437f16a4d4
commit
96d1039c24
1 changed files with 2 additions and 5 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* Known contributors to this file:
|
* Known contributors to this file:
|
||||||
* Steve McClure, 2000
|
* Steve McClure, 2000
|
||||||
* Markus Armbruster, 2004-2009
|
* Markus Armbruster, 2004-2011
|
||||||
* Ron Koenderink, 2004-2009
|
* Ron Koenderink, 2004-2009
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -218,10 +218,7 @@ execute(void)
|
||||||
|
|
||||||
failed = 0;
|
failed = 0;
|
||||||
|
|
||||||
if (player->comtail[1])
|
p = getstarg(player->comtail[1], "File? ", buf);
|
||||||
p = player->comtail[1];
|
|
||||||
else
|
|
||||||
p = getstring("File? ", buf);
|
|
||||||
if (p == NULL || *p == '\0')
|
if (p == NULL || *p == '\0')
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
prexec(p);
|
prexec(p);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue