(peek, empmod): Remove obsolete command hidden.
This commit is contained in:
parent
38c55314f2
commit
8f7389e404
2 changed files with 0 additions and 15 deletions
|
@ -40,7 +40,6 @@
|
||||||
#include "nsc.h"
|
#include "nsc.h"
|
||||||
#include "nat.h"
|
#include "nat.h"
|
||||||
#include "commands.h"
|
#include "commands.h"
|
||||||
#include "version.h" /* need to OBSOLETE hidden command */
|
|
||||||
|
|
||||||
int
|
int
|
||||||
peek(void)
|
peek(void)
|
||||||
|
@ -49,13 +48,6 @@ peek(void)
|
||||||
int nsect;
|
int nsect;
|
||||||
struct nstr_sect nstr;
|
struct nstr_sect nstr;
|
||||||
|
|
||||||
/*
|
|
||||||
* OBSOLETE
|
|
||||||
* Can be removed once hidden command is removed from empmod.c
|
|
||||||
*/
|
|
||||||
if (player->argp[0][0] == 'h')
|
|
||||||
pr("The hidden command has been renamed to peek, use peek in the future\n");
|
|
||||||
|
|
||||||
if (!snxtsct(&nstr, player->argp[1]))
|
if (!snxtsct(&nstr, player->argp[1]))
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
prdate();
|
prdate();
|
||||||
|
|
|
@ -40,8 +40,6 @@
|
||||||
#include "nat.h"
|
#include "nat.h"
|
||||||
#include "file.h"
|
#include "file.h"
|
||||||
#include "commands.h"
|
#include "commands.h"
|
||||||
#include "version.h" /* need to OBSOLETE hidden command */
|
|
||||||
|
|
||||||
|
|
||||||
struct cmndstr player_coms[] = {
|
struct cmndstr player_coms[] = {
|
||||||
/* command form cost addr permit */
|
/* command form cost addr permit */
|
||||||
|
@ -120,11 +118,6 @@ struct cmndstr player_coms[] = {
|
||||||
{"harden <PLANES> <NUM>", 2, hard, C_MOD, NORM + MONEY + CAP},
|
{"harden <PLANES> <NUM>", 2, hard, C_MOD, NORM + MONEY + CAP},
|
||||||
{"help <topic>", 0, info, 0, VIS},
|
{"help <topic>", 0, info, 0, VIS},
|
||||||
{"headlines [days]", 0, head, C_MOD, VIS},
|
{"headlines [days]", 0, head, C_MOD, VIS},
|
||||||
/*
|
|
||||||
* OBSOLETE
|
|
||||||
* once hidden command is removed, also remove the hidden code in peek.c
|
|
||||||
*/
|
|
||||||
{"hidden <SECTS>", 0, peek, 0, GOD},
|
|
||||||
{"improve <road|rail|defense> <SECTS> <NUM>", 1, improve, C_MOD,
|
{"improve <road|rail|defense> <SECTS> <NUM>", 1, improve, C_MOD,
|
||||||
NORM + MONEY + CAP},
|
NORM + MONEY + CAP},
|
||||||
{"info <topic>", 0, info, 0, VIS},
|
{"info <topic>", 0, info, 0, VIS},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue