User Name:


Forgot your password?
Vote for Us!
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Bing

Members: 0
Guests: 13
Newest Member
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Bugfix Lists » AFKMud Bugfix List » [Bug] Armor type conversion c...
Forum Rules | Mark all | Recent Posts

[Bug] Armor type conversion code should not have been included
< Newer Topic :: Older Topic > AFKMud 2.0

Pages:<< prev 1 next >>
Post is unread #1 Jan 6, 2007, 10:16 am
Go to the top of the page
Go to the bottom of the page

Black Hand
JoinedJan 1, 2002

Bug: Armor type conversion code should not have been included
Danger: Medium - Could cause problems with areas from older codebase versions.
Discovered in: AFKMud 2.0
Found by: Samson
Fixed by: Samson


objindex.cpp, obj_index::create_object

Locate and remove:
    * Wow. This hackish looking thing is pretty bad isn't it?
    * * I thought so too, but hey. Dwip wanted to bring in a bunch of old stuff that needed to be armorgen'd.
    * * This was about the only way I could think to do it.
    * * Won't bother you much if you haven't set v3 or v4 on an armor though.
    * * All in the name of being able to retain stats if deviating from the armorgen specs.
    * * Samson 12-23-02
   if( area->version < 18 )
      if( obj->item_type == ITEM_ARMOR && obj->value[3] > 0 && obj->value[4] > 0 )
         bool pflag = false;

         if( extra_flags.test( ITEM_PROTOTYPE ) )
            pflag = true;
         obj->extra_flags.set( ITEM_PROTOTYPE );
         obj->armorgen(  );
         if( !pflag )
            obj->extra_flags.reset( ITEM_PROTOTYPE );
            extra_flags.reset( ITEM_PROTOTYPE );

This block of code was used by Alsherok to bring up old area files into the new automatic armor generation code and convert their old settings. It was not supposed to have been included in the stock code distribution. It should not have any lasting affects, but you may need to check any of your "armor" type objects to make sure they haven't received strange settings from this.
Pages:<< prev 1 next >>