diff --git a/autorun b/autorun index d0e3720..15377fe 100755 --- a/autorun +++ b/autorun @@ -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 } diff --git a/changelog b/changelog index 4ca4fec..61886db 100644 --- a/changelog +++ b/changelog @@ -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 diff --git a/src/class.c b/src/class.c index 35d1145..d87f6e8 100644 --- a/src/class.c +++ b/src/class.c @@ -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 */ diff --git a/src/qedit.c b/src/qedit.c index f26ed5c..60744c2 100644 --- a/src/qedit.c +++ b/src/qedit.c @@ -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) {