Login
User Name:

Password:



Register

Forgot your password?
 I3 and IMC
Dec 26, 2024 3:27 am
By GatewaySysop
Hi - Clean SmaugFuss map/description issue..
Dec 15, 2024 7:29 pm
By Samson
AFKMud 2.2.4
Dec 10, 2024 4:09 pm
By Samson
Ubuntu 22.04.5 LTS
Dec 5, 2024 5:10 pm
By Remcon
SmaugFUSS 1.8/1.9
Nov 29, 2024 11:46 am
By Remcon
LOP 1.6
Author: Remcon
Submitted by: Remcon
SWFOTEFUSS 1.5.1
Author: Various
Submitted by: Samson
SWRFUSS 1.4.1
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.5
Author: Various
Submitted by: Samson
AFKMud 2.2.4
Author: AFKMud Team
Submitted by: Samson
Users Online
Google, Remcon

Members: 1
Guests: 16
Stats
Files
Topics
Posts
Members
Newest Member
496
3,808
19,708
594
MaisieMacl

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » Bugfix Lists » AFKMud Bugfix List » [Bug] Affects are mostly igno...
Forum Rules | Mark all | Recent Posts

[Bug] Affects are mostly ignored when set by code
< Newer Topic :: Older Topic > AFKMud 2.01

Pages:<< prev 1 next >>
Post is unread #1 Oct 14, 2007 12:11 pm   
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,697
JoinedJan 1, 2002

 
Bug: Affects are mostly ignored when set by code
Danger: Medium - Rather noticeable when simple things like invisibility fail to apply.
Discovered in: AFKMud 2.01
Found by: SinSeer
Fixed by: Samson

---

character.cpp, affect_modify

Locate:
      /* if( paf->bit >= 0 && paf->bit < MAX_AFFECTED_BY )
         affected_by.set( paf->bit ); -- Restore this if anything weird starts happening. Otherwise remove if found later. */


Change to:
      if( paf->bit >= 0 && paf->bit < MAX_AFFECTED_BY )
         set_aflag( paf->bit );


update.cpp, mobile_update

Locate:
      if( ch->has_actflag( ACT_PET ) && !ch->is_affected( gsn_charm_person ) && ch->master )


Change to:
      if( ch->has_actflag( ACT_PET ) && !ch->has_aflag( AFF_CHARM ) && ch->master )


These two really simple screwups wrecked 90% of magical affects which should have been applied from various sources, along with crippling the entire pet system. Obviously that would be defined as something weird happening. Goes to show you that very subtle mistakes can cause you a whole world of hurt. I'm perhaps more amazed that this condition existed for a very long time on Alsherok and nobody ever noticed it!

Pages:<< prev 1 next >>