Minor changes and a test commit --Rumble

This commit is contained in:
Rumble 2013-02-03 21:46:12 +00:00
parent a9a159cc60
commit 82da0e8063
4 changed files with 10 additions and 8 deletions

View file

@ -1033,12 +1033,7 @@ int search_help(const char *argument, int level)
while (level < help_table[mid].min_level && mid < (bot + top) / 2)
mid++;
/* The following line was commented out at some point, by someone, for some reason...
* as I am unaware of that reason, and without a level check all help files, including
* the ones we may not want a player to see, are available. So I'm reversing this now.
* -Vat */
if (strn_cmp(argument, help_table[mid].keywords, minlen) || level < help_table[mid].min_level)
/*if (strn_cmp(argument, help_table[mid].keywords, minlen))*/
break;
return (mid);

View file

@ -2382,12 +2382,12 @@ void send_to_all(const char *messg, ...)
void send_to_outdoor(const char *messg, ...)
{
struct descriptor_data *i;
va_list args;
if (!messg || !*messg)
return;
for (i = descriptor_list; i; i = i->next) {
va_list args;
if (STATE(i) != CON_PLAYING || i->character == NULL)
continue;