mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-18 17:41:45 +01:00
some small additions to the event and list system, and some retractions of previously changed code.
This commit is contained in:
@@ -1352,6 +1352,10 @@ 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);
|
||||
|
||||
/* Allocate mobile event list */
|
||||
d->character->events = create_list();
|
||||
|
||||
GET_HOST(d->character) = strdup(d->host);
|
||||
d->character->desc = d;
|
||||
}
|
||||
@@ -1387,6 +1391,9 @@ void nanny(struct descriptor_data *d, char *arg)
|
||||
clear_char(d->character);
|
||||
CREATE(d->character->player_specials, struct player_special_data, 1);
|
||||
|
||||
/* Allocate mobile event list */
|
||||
d->character->events = create_list();
|
||||
|
||||
if (GET_HOST(d->character))
|
||||
free(GET_HOST(d->character));
|
||||
GET_HOST(d->character) = strdup(d->host);
|
||||
|
||||
Reference in New Issue
Block a user