Welcome to the Builder Academy

Question Bug fix for no_mort_to_immort

More
21 Aug 2012 18:09 #720 by Liko
Hello,

I found a small bug that wasn't loading no_mort_to_immort correctly. Here is the simple fix.

1.Open db.c and find void load_config.
2. find this line and remove it:
Code:
else if (!str_cmp(tag, "no_mort_to_immort")) CONFIG_NO_MORT_TO_IMMORT = num;

3. scroll down till you find case 'n' and under:
Code:
if (!str_cmp(tag, "nameserver_is_slow")) CONFIG_NS_IS_SLOW = num;

Add:
Code:
else if (!str_cmp(tag, "no_mort_to_immort")) CONFIG_NO_MORT_TO_IMMORT = num;

4. save and compile. NO_MORT_TO_IMMORT will be loading correctly after a copyover or reboot.

I believe this bug was caused due to it being defined under case 'i' instead of case 'n'. I also checked its in tbaMUD 3.63 also.

Randian(0.0.0)
Owner/Developer
The following user(s) said Thank You: bakarus, zusuk

Please Log in or Create an account to join the conversation.

More
21 Aug 2012 20:31 #722 by Halenbane
Ty for the fix Liko, I had realized that no_mort_to_immort wasn't saving properly in cedit and always wanted to go back to the default. Had it in my pile of todo's, Thanks again!

Please Log in or Create an account to join the conversation.

More
22 Aug 2012 23:01 #729 by Rumble
Added to the SVN, thanks.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

Please Log in or Create an account to join the conversation.

Time to create page: 0.220 seconds