mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-22 02:00:13 +01:00
Removal of outdated char_file_u warnings.
Adding of the appropropriate structs to the plrtoascii utility. Incoorporation of changes from old circlemud CVS snapshot this also gives more info on SYSERRors. cleanup of zmalloc language (shit->tmp) PRF_ROOMFLAGS has been renamed to PRF_SHOWVNUMS for clarity. "Deaf" has been changed to "No_shout" in preference_bits, for clarity. Addition of hindex (help index) command. who command added argument -g and -l to check who are grouped (and leaders) toggle has been expanded, and the commands nohassle, holylight, color, buildwalk, syslog and roomflags were moved to toggles. renaming of some vars in dg files (xxx -> dg_xxx) for clarity. set <player> password can now be used by other people than the first implementor - id check removed. fix of a couple of minor bugs: - crash bug related to freeing a pointer twice - ascii pfiles bug. - host was not updated correctly after switch to ascii pfiles. Todo: make "who #-#", "who #-" and "who -#" all work as "who -l #-#" did before Remove redundant commands which are now toggles. Make script variables save to pfile instead of its own file.
This commit is contained in:
parent
9607be0112
commit
047c5d0de3
45 changed files with 765 additions and 474 deletions
|
|
@ -24,7 +24,6 @@
|
|||
#include "screen.h"
|
||||
#include "genolc.h"
|
||||
#include "oasis.h"
|
||||
#include "tedit.h"
|
||||
#include "improved-edit.h"
|
||||
#include "dg_scripts.h"
|
||||
#include "constants.h"
|
||||
|
|
@ -64,6 +63,7 @@ int perform_alias(struct descriptor_data *d, char *orig, size_t maxlen);
|
|||
int reserved_word(char *argument);
|
||||
int _parse_name(char *arg, char *name);
|
||||
int enter_player_game (struct descriptor_data *d);
|
||||
void write_aliases(struct char_data *ch);
|
||||
|
||||
/* prototypes for all do_x functions. */
|
||||
ACMD(do_action);
|
||||
|
|
@ -131,7 +131,6 @@ ACMD(do_load);
|
|||
ACMD(do_look);
|
||||
/* ACMD(do_move); -- interpreter.h */
|
||||
ACMD(do_not_here);
|
||||
ACMD(do_olc);
|
||||
ACMD(do_order);
|
||||
ACMD(do_page);
|
||||
ACMD(do_pagelength);
|
||||
|
|
@ -264,7 +263,7 @@ cpp_extern const struct command_info cmd_info[] = {
|
|||
|
||||
/* now, the main list */
|
||||
{ "at" , "at" , POS_DEAD , do_at , LVL_IMMORT, 0 },
|
||||
{ "advance" , "adv" , POS_DEAD , do_advance , LVL_IMPL, 0 },
|
||||
{ "advance" , "adv" , POS_DEAD , do_advance , LVL_GOD, 0 },
|
||||
{ "aedit" , "aed" , POS_DEAD , do_oasis , LVL_GOD, SCMD_OASIS_AEDIT },
|
||||
{ "alias" , "ali" , POS_DEAD , do_alias , 0, 0 },
|
||||
{ "afk" , "afk" , POS_DEAD , do_gen_tog , 0, SCMD_AFK },
|
||||
|
|
@ -744,7 +743,8 @@ ACMD(do_alias)
|
|||
a->type = ALIAS_SIMPLE;
|
||||
a->next = GET_ALIASES(ch);
|
||||
GET_ALIASES(ch) = a;
|
||||
send_to_char(ch, "Alias added.\r\n");
|
||||
write_aliases(ch);
|
||||
send_to_char(ch, "Alias saved.\r\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1401,6 +1401,7 @@ void nanny(struct descriptor_data *d, char *arg)
|
|||
CREATE(d->character, struct char_data, 1);
|
||||
clear_char(d->character);
|
||||
CREATE(d->character->player_specials, struct player_special_data, 1);
|
||||
GET_HOST(d->character) = strdup(d->host);
|
||||
d->character->desc = d;
|
||||
}
|
||||
if (!*arg)
|
||||
|
|
@ -1435,6 +1436,8 @@ void nanny(struct descriptor_data *d, char *arg)
|
|||
CREATE(d->character, struct char_data, 1);
|
||||
clear_char(d->character);
|
||||
CREATE(d->character->player_specials, struct player_special_data, 1);
|
||||
GET_HOST(d->character) = strdup(d->host);
|
||||
|
||||
d->character->desc = d;
|
||||
CREATE(d->character->player.name, char, strlen(tmp_name) + 1);
|
||||
strcpy(d->character->player.name, CAP(tmp_name)); /* strcpy: OK (size checked above) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue