Updated autorun to fix a random syslog numbering bug. (thanks Zizazat) -- Rumble
This commit is contained in:
12
autorun
12
autorun
@@ -108,18 +108,18 @@ proc_syslog () {
|
|||||||
|
|
||||||
# Find the # to set the new log file to.
|
# Find the # to set the new log file to.
|
||||||
if [ -s log/syslog.$BACKLOGS ]; then
|
if [ -s log/syslog.$BACKLOGS ]; then
|
||||||
declare -i newlog=$BACKLOGS+1
|
newlog=$(expr $BACKLOGS + 1)
|
||||||
else
|
else
|
||||||
declare -i newlog=1
|
newlog=1
|
||||||
while [ -s log/syslog.$newlog ]; do newlog=$newlog+1; done
|
while [ -s log/syslog.$newlog ]; do newlog=$(expr $newlog + 1); done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Rotate the logs.
|
# Rotate the logs.
|
||||||
declare -i y=2
|
y=2
|
||||||
while [ $y -lt $newlog ]; do
|
while [ $y -lt $newlog ]; do
|
||||||
declare -i x=$y-1
|
x=$(expr $y - 1)
|
||||||
mv -f log/syslog.$y log/syslog.$x
|
mv -f log/syslog.$y log/syslog.$x
|
||||||
y=$y+1
|
y=$(expr $y + 1)
|
||||||
done
|
done
|
||||||
mv -f syslog log/syslog.$newlog
|
mv -f syslog log/syslog.$newlog
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
telnet://tbamud.com:9091 or email rumble@tbamud.com --Rumble
|
||||||
|
|
||||||
tbaMUD 3.56
|
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
|
[May 08 2008] - Rumble
|
||||||
Cleaned up numerous warnings found by adding -Wextra -Wcast-qual -Wshadow -Wno-unused flags.
|
Cleaned up numerous warnings found by adding -Wextra -Wcast-qual -Wshadow -Wno-unused flags.
|
||||||
[May 05 2008] - Rumble
|
[May 05 2008] - Rumble
|
||||||
|
|||||||
@@ -1525,9 +1525,7 @@ void advance_level(struct char_data *ch)
|
|||||||
* performance hit because it's not used very often. */
|
* performance hit because it's not used very often. */
|
||||||
int backstab_mult(int level)
|
int backstab_mult(int level)
|
||||||
{
|
{
|
||||||
if (level <= 0)
|
if (level <= 7)
|
||||||
return 1; /* level 0 */
|
|
||||||
else if (level <= 7)
|
|
||||||
return 2; /* level 1 - 7 */
|
return 2; /* level 1 - 7 */
|
||||||
else if (level <= 13)
|
else if (level <= 13)
|
||||||
return 3; /* level 8 - 13 */
|
return 3; /* level 8 - 13 */
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ ACMD(do_oasis_qedit)
|
|||||||
number = atoi(buf1);
|
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) {
|
for (d = descriptor_list; d; d = d->next) {
|
||||||
if (STATE(d) == CON_QEDIT) {
|
if (STATE(d) == CON_QEDIT) {
|
||||||
|
|||||||
Reference in New Issue
Block a user