mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-20 17:20:12 +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
|
|
@ -186,7 +186,7 @@ int find_context_trigedit(struct descriptor_data *d)
|
|||
{
|
||||
switch (OLC_MODE(d)) {
|
||||
case TRIGEDIT_MAIN_MENU: return CONTEXT_TRIGEDIT_MAIN_MENU;
|
||||
case TRIGEDIT_TRIGTYPE: return CONTEXT_TRIGEDIT_TRIGTYPE;
|
||||
case TRIGEDIT_TRIGTYPE: return CONTEXT_TRIGEDIT_TRIGTYPE;
|
||||
case TRIGEDIT_CONFIRM_SAVESTRING:return CONTEXT_TRIGEDIT_CONFIRM_SAVESTRING;
|
||||
case TRIGEDIT_NAME: return CONTEXT_TRIGEDIT_NAME;
|
||||
case TRIGEDIT_INTENDED: return CONTEXT_TRIGEDIT_INTENDED;
|
||||
|
|
@ -201,9 +201,9 @@ int find_context_trigedit(struct descriptor_data *d)
|
|||
int find_context_script_edit(struct descriptor_data *d)
|
||||
{
|
||||
switch (OLC_SCRIPT_EDIT_MODE(d)) {
|
||||
case SCRIPT_MAIN_MENU: return CONTEXT_SCRIPT_MAIN_MENU;
|
||||
case SCRIPT_MAIN_MENU: return CONTEXT_SCRIPT_MAIN_MENU;
|
||||
case SCRIPT_NEW_TRIGGER:return CONTEXT_SCRIPT_NEW_TRIGGER;
|
||||
case SCRIPT_DEL_TRIGGER:return CONTEXT_SCRIPT_DEL_TRIGGER;
|
||||
case SCRIPT_DEL_TRIGGER:return CONTEXT_SCRIPT_DEL_TRIGGER;
|
||||
default: return NOTHING;
|
||||
}
|
||||
}
|
||||
|
|
@ -218,13 +218,13 @@ int context_help(struct descriptor_data *d, char *arg)
|
|||
/* skip if context help isn't wanted */
|
||||
if (strncmp(arg, CONTEXT_HELP_STRING, strlen(CONTEXT_HELP_STRING)))
|
||||
return FALSE;
|
||||
|
||||
|
||||
tmp = one_argument(arg, actbuf); /* the totally useless 'help' string.. */
|
||||
skip_spaces(&tmp);
|
||||
|
||||
if (!*tmp)
|
||||
context = find_context(d);
|
||||
|
||||
|
||||
if (context != NOTHING && context < NUM_CONTEXTS && *context_help_list[context]) {
|
||||
if (*context_help_list[context] == FIND_HELP_CHAR) {
|
||||
strncpy(actbuf, context_help_list[context]+1, sizeof(actbuf)-1);
|
||||
|
|
@ -233,7 +233,7 @@ int context_help(struct descriptor_data *d, char *arg)
|
|||
write_to_output(d, "\r\n%s\r\n> ", context_help_list[context]);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
strncpy(actbuf, tmp, sizeof(actbuf)-1);
|
||||
do_help(d->character, actbuf, 0, 0);
|
||||
return TRUE;
|
||||
|
|
@ -249,8 +249,8 @@ void boot_context_help(void) {
|
|||
/* init to 'no help' string */
|
||||
for (i=0;i < NUM_CONTEXTS;i++)
|
||||
context_help_list[i] = NO_HELP;
|
||||
|
||||
if (!fl) {
|
||||
|
||||
if (!fl) {
|
||||
log("No context help found : %s", strerror(errno));
|
||||
return;
|
||||
}
|
||||
|
|
@ -258,7 +258,7 @@ void boot_context_help(void) {
|
|||
if (sscanf(line, "#%d *", &num) == 1 && num >= 0 && num < NUM_CONTEXTS) /* got a number, now get the text */
|
||||
context_help_list[num] = fread_string(fl, "Context sensitive help");
|
||||
}
|
||||
|
||||
|
||||
fclose(fl);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue