Updated autorun to fix a random syslog numbering bug. (thanks Zizazat) -- Rumble

This commit is contained in:
Rumble 2008-05-15 14:43:08 +00:00
parent a7ffa85498
commit 6817812208
4 changed files with 12 additions and 10 deletions

12
autorun
View file

@ -108,18 +108,18 @@ proc_syslog () {
# Find the # to set the new log file to.
if [ -s log/syslog.$BACKLOGS ]; then
declare -i newlog=$BACKLOGS+1
newlog=$(expr $BACKLOGS + 1)
else
declare -i newlog=1
while [ -s log/syslog.$newlog ]; do newlog=$newlog+1; done
newlog=1
while [ -s log/syslog.$newlog ]; do newlog=$(expr $newlog + 1); done
fi
# Rotate the logs.
declare -i y=2
y=2
while [ $y -lt $newlog ]; do
declare -i x=$y-1
x=$(expr $y - 1)
mv -f log/syslog.$y log/syslog.$x
y=$y+1
y=$(expr $y + 1)
done
mv -f syslog log/syslog.$newlog
}

View file

@ -3,6 +3,10 @@ help, find any bugs, or have ideas for improvement please stop by TBA at
telnet://tbamud.com:9091 or email rumble@tbamud.com --Rumble
tbaMUD 3.56
[May 15 2008] - Rumble
Updated autorun to fix a random syslog numbering bug. (thanks Zizazat)
[May 10 2008] - Rumble
Fixed another typo, added a check for !NPC do_gen_comm, and changed do_return to only run autowiz if level changes. (thanks Fizban)
[May 08 2008] - Rumble
Cleaned up numerous warnings found by adding -Wextra -Wcast-qual -Wshadow -Wno-unused flags.
[May 05 2008] - Rumble

View file

@ -1525,9 +1525,7 @@ void advance_level(struct char_data *ch)
* performance hit because it's not used very often. */
int backstab_mult(int level)
{
if (level <= 0)
return 1; /* level 0 */
else if (level <= 7)
if (level <= 7)
return 2; /* level 1 - 7 */
else if (level <= 13)
return 3; /* level 8 - 13 */

View file

@ -100,7 +100,7 @@ ACMD(do_oasis_qedit)
number = atoi(buf1);
/****************************************************************************/
/** Check that the guild isn't already being edited. **/
/** Check that the quest isn't already being edited. **/
/****************************************************************************/
for (d = descriptor_list; d; d = d->next) {
if (STATE(d) == CON_QEDIT) {