Make play show no last command when there hasn't been one
Before, it printed NULL, which isn't helpful.
This commit is contained in:
parent
11d6e8ce80
commit
354664eef2
1 changed files with 7 additions and 10 deletions
|
@ -29,6 +29,7 @@
|
|||
* Known contributors to this file:
|
||||
* Ken Stevens, 1995
|
||||
* Steve McClure, 1998
|
||||
* Markus Armbruster, 2005-2011
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
@ -105,9 +106,6 @@ play_list(struct player *joe)
|
|||
(long)(now - joe->curup));
|
||||
|
||||
if (player->god) {
|
||||
if (!joe->combuf || !*joe->combuf)
|
||||
pr(" NULL\n");
|
||||
else {
|
||||
n = ufindpfx(joe->combuf, 20);
|
||||
if (CANT_HAPPEN(n + 3u > sizeof(com))) {
|
||||
pr(" BUGGY\n");
|
||||
|
@ -115,7 +113,6 @@ play_list(struct player *joe)
|
|||
}
|
||||
sprintf(com, " %.*s\n", n, joe->combuf);
|
||||
uprnf(com);
|
||||
}
|
||||
} else
|
||||
pr("\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue