mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-24 01:46:10 +01:00
Removed all whitespace (tabs and spaces) from EOL's. How did we get so many? --Rumble
This commit is contained in:
parent
49c469967a
commit
a2031d64e2
79 changed files with 2851 additions and 2852 deletions
|
|
@ -5,8 +5,8 @@
|
|||
* Copyright 1997-2001 George Greer (greerga@circlemud.org) *
|
||||
* Copyright 2002 Kip Potter [Mythran] (kip_potter@hotmail.com) *
|
||||
************************************************************************/
|
||||
|
||||
/*
|
||||
|
||||
/*
|
||||
+-----------------------------------------------------------------------+
|
||||
| As of right now, all I have made is the ability to delete rooms. |
|
||||
| Deleting the rest of the area (objects, zones, mobiles) will be |
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
| be adding more deletion code after this patch. |
|
||||
| -- Mythran |
|
||||
+-----------------------------------------------------------------------+
|
||||
*/
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
|
@ -48,80 +48,80 @@ int free_strings(void *data, int type)
|
|||
struct room_data *room;
|
||||
struct config_data *config;
|
||||
int i;
|
||||
|
||||
|
||||
switch (type) {
|
||||
case OASIS_WLD:
|
||||
room = (struct room_data *) data;
|
||||
|
||||
|
||||
/* Free Descriptions */
|
||||
if (room->name)
|
||||
free(room->name);
|
||||
|
||||
if (room->description)
|
||||
if (room->description)
|
||||
free(room->description);
|
||||
|
||||
if (room->ex_description)
|
||||
if (room->ex_description)
|
||||
free_ex_descriptions(room->ex_description);
|
||||
|
||||
/* Return the return value of free_strings(). */
|
||||
return (free_strings(room, OASIS_EXI));
|
||||
|
||||
|
||||
case OASIS_EXI:
|
||||
room = (struct room_data *) data;
|
||||
|
||||
|
||||
for (i = 0; i < NUM_OF_DIRS; i++) {
|
||||
if (room->dir_option[i]) {
|
||||
if (room->dir_option[i]->general_description) {
|
||||
free(room->dir_option[i]->general_description);
|
||||
room->dir_option[i]->general_description = NULL;
|
||||
}
|
||||
if (room->dir_option[i]->keyword) {
|
||||
free(room->dir_option[i]->keyword);
|
||||
room->dir_option[i]->keyword = NULL;
|
||||
}
|
||||
if (room->dir_option[i]->general_description) {
|
||||
free(room->dir_option[i]->general_description);
|
||||
room->dir_option[i]->general_description = NULL;
|
||||
}
|
||||
if (room->dir_option[i]->keyword) {
|
||||
free(room->dir_option[i]->keyword);
|
||||
room->dir_option[i]->keyword = NULL;
|
||||
}
|
||||
free(room->dir_option[i]);
|
||||
room->dir_option[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return (TRUE);
|
||||
|
||||
|
||||
case OASIS_MOB:
|
||||
case OASIS_OBJ:
|
||||
return (FALSE); /* For now... */
|
||||
|
||||
|
||||
case OASIS_CFG:
|
||||
config = (struct config_data *) data;
|
||||
|
||||
|
||||
if (config->play.OK)
|
||||
free(config->play.OK);
|
||||
|
||||
|
||||
if (config->play.NOPERSON)
|
||||
free(config->play.NOPERSON);
|
||||
|
||||
|
||||
if (config->play.NOEFFECT)
|
||||
free(config->play.NOEFFECT);
|
||||
|
||||
|
||||
if (config->operation.DFLT_IP)
|
||||
free(config->operation.DFLT_IP);
|
||||
|
||||
|
||||
if (config->operation.DFLT_DIR)
|
||||
free(config->operation.DFLT_DIR);
|
||||
|
||||
|
||||
if (config->operation.LOGNAME)
|
||||
free(config->operation.LOGNAME);
|
||||
|
||||
|
||||
if (config->operation.MENU)
|
||||
free(config->operation.MENU);
|
||||
|
||||
|
||||
if (config->operation.WELC_MESSG)
|
||||
free(config->operation.WELC_MESSG);
|
||||
|
||||
|
||||
if (config->operation.START_MESSG)
|
||||
free(config->operation.START_MESSG);
|
||||
|
||||
|
||||
return (TRUE);
|
||||
|
||||
|
||||
default:
|
||||
mudlog(BRF, LVL_GOD, TRUE, "SYSERR: oasis_delete.c: free_strings: Invalid type handled (Type %d).", type);
|
||||
return (FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue