Don't use conditional compilation to time out obsolete stuff. Do it
by hand.
This commit is contained in:
parent
c1ab03dd5e
commit
cf426896af
2 changed files with 1 additions and 4 deletions
|
@ -49,14 +49,13 @@ peek(void)
|
||||||
int nsect;
|
int nsect;
|
||||||
struct nstr_sect nstr;
|
struct nstr_sect nstr;
|
||||||
|
|
||||||
#if EMP_VERS_MINOR == 2 && EMP_VERS_PATCH <= 22
|
|
||||||
/*
|
/*
|
||||||
* OBSOLETE
|
* OBSOLETE
|
||||||
* Can be removed once hidden command is removed from empmod.c
|
* Can be removed once hidden command is removed from empmod.c
|
||||||
*/
|
*/
|
||||||
if (player->argp[0][0] == 'h')
|
if (player->argp[0][0] == 'h')
|
||||||
pr("The hidden command has been renamed to peek, use peek in the future\n");
|
pr("The hidden command has been renamed to peek, use peek in the future\n");
|
||||||
#endif
|
|
||||||
if (!snxtsct(&nstr, player->argp[1]))
|
if (!snxtsct(&nstr, player->argp[1]))
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
prdate();
|
prdate();
|
||||||
|
|
|
@ -120,13 +120,11 @@ 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},
|
||||||
#if EMP_VERS_MINOR == 2 && EMP_VERS_PATCH <= 22
|
|
||||||
/*
|
/*
|
||||||
* OBSOLETE
|
* OBSOLETE
|
||||||
* once hidden command is removed, also remove the hidden code in peek.c
|
* once hidden command is removed, also remove the hidden code in peek.c
|
||||||
*/
|
*/
|
||||||
{"hidden <SECTS>", 0, peek, 0, GOD},
|
{"hidden <SECTS>", 0, peek, 0, GOD},
|
||||||
#endif
|
|
||||||
{"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