(xdump): Fail unless GUINEA_PIGS is enabled.

This commit is contained in:
Markus Armbruster 2004-12-16 22:05:15 +00:00
parent bebf6a7de0
commit b0ce8c0253

View file

@ -535,6 +535,11 @@ xdump(void)
char buf[1024]; char buf[1024];
int type; int type;
if (!opt_GUINEA_PIGS) {
pr("You are not a guinea pig!\n");
return RET_FAIL;
}
p = getstarg(player->argp[1], "What? ", buf); p = getstarg(player->argp[1], "What? ", buf);
if (!p) if (!p)
return RET_SYN; return RET_SYN;