Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
Bug in do_drag( )
Oct 8, 2017, 12:40 am
By GatewaySysop
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Beastmaster 6D sound files
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Bing, Google, Yahoo!, Majestic-12

Members: 0
Guests: 5
Stats
Files
Topics
Posts
Members
Newest Member
476
3,704
19,231
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Bugfix Lists » AFKMud Bugfix List » [Bug] Config options for blan...
Forum Rules | Mark all | Recent Posts

[Bug] Config options for blank and automap don't stick if log out, back in
< Newer Topic :: Older Topic > AFKMud 2.0

Pages:<< prev 1 next >>
Post is unread #1 Jan 3, 2007, 7:43 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Bug: Config options for blank and automap don't stick if you log out and back in.
Danger: Low - Annoyance factor if you don't want the options set.
Discovered in: AFKMud 2.0
Found by: Lazerous
Fixed by: Samson

---

save.cpp, load_char_obj

Locate and remove:
   ch->set_pcflag( PCFLAG_BLANK );
   ch->set_pcflag( PCFLAG_AUTOMAP );


descriptor.cpp, descriptor_data::nanny

Locate:
         /*
          * ANSI defaults to on now. This is 2003 folks. Grow up. Samson 7-24-03 
          */
         ch->set_pcflag( PCFLAG_ANSI );
         reset_colors( ch );  /* Added for new configurable color code - Samson 3-27-98 */


Below that, add:
         ch->set_pcflag( PCFLAG_BLANK );
         ch->set_pcflag( PCFLAG_AUTOMAP );


The options in this case were intended to be activated during chargen, and not every time the player loads into the game. Moving the function calls to the new spot in descriptor.cpp will accomplish this without making the config options to turn them off worthless.
       
Pages:<< prev 1 next >>