EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Blocked Spells Backwards (https://www.eqemulator.org/forums/showthread.php?t=39594)

ghanja 04-23-2015 02:37 PM

Blocked Spells Backwards
 
zone.cpp

Line 1903:
Code:

                                                if (IsWithinAxisAlignedBox(location, blocked_spells[x].m_Location - blocked_spells[x].m_Difference, blocked_spells[x].m_Location + blocked_spells[x].m_Difference))
Change to:
Code:

                                                if (IsWithinAxisAlignedBox(location, blocked_spells[x].m_Location - blocked_spells[x].m_Difference, blocked_spells[x].m_Location + blocked_spells[x].m_Difference))

Line 1937:
Code:

                                        if(!IsWithinAxisAlignedBox(location, blocked_spells[x].m_Location - blocked_spells[x].m_Difference, blocked_spells[x].m_Location + blocked_spells[x].m_Difference))
Change to:
Code:

                                        if(IsWithinAxisAlignedBox(location, blocked_spells[x].m_Location - blocked_spells[x].m_Difference, blocked_spells[x].m_Location + blocked_spells[x].m_Difference))
If a spell is blocked within the 'blocked_spells' table of a type 2 (use coordinates), IsWithinAxisAlignedBox would return true, albeit, the code was checking for a ! (not) true condition, instead blocking the spell everywhere else but the coordinate box. Credit to provocating for recognizing the bug.

Dev's notified but placing here for redundancy.


All times are GMT -4. The time now is 04:24 AM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.