Machiavelli
8cfc3782e3
Fix linux build (with PCH enabled, mind you)
...
--HG--
branch : trunk
2010-08-21 03:44:02 +02:00
Machiavelli
994186f267
DB Layer:
...
- Make SQL Transactions actual objects used in code. (Thanks to Derex for the idea)
* Uncommitted transactions will be automatically rolled back and cleaned up using ACE_Refcounted_Auto_Ptr, so no need to call Rollback() in the code.
* Prevents recursive transactions and makes developers aware of transactions going on.
* Gets rid of unneccesary overhead iterating over a concurrent map.
- Some cleanups in affected code, including better usage of transaction control in AH / mail related code to prevent data loss.
*** Experimental, use at own risk, recommended to backup your DBs. ***
--HG--
branch : trunk
2010-08-21 03:19:25 +02:00
click
a7498d2f56
Core/Includes: Include ACE as an external dependency, not local (#include "ace/something.h" -> #include <ace/something.h>)
...
--HG--
branch : trunk
2010-08-21 02:27:12 +02:00
silinoron
d89671727b
fix r905a640a2d - tabs to spaces, and add a forgetten break.
...
--HG--
branch : trunk
2010-08-20 15:22:42 -07:00
Liberate
6f605cb0e5
Fixes silly gossip menus of quest givers.
...
Fixes issue #3484
--HG--
branch : trunk
2010-08-20 22:03:19 +02:00
silinoron
43b1c2dba4
* Remove support for map-based random number generation (which seems unused).
...
* Re-add in support for the old mersenne twister for those whose processors don't support SSE2.
* Toggling whether or not you are using SFMT is as easy as checking a CMake flag, USE_SFMT, which defaults to 0.
--HG--
branch : trunk
2010-08-20 12:42:14 -07:00
John Holiver
ca350b4758
Core/Spells/Scripts: Needed spell fixes for some Trial of the Crusader bosses (Leeching Swarm, Slime Pool and Burning Bile)
...
--HG--
branch : trunk
2010-08-20 14:11:26 -03:00
Machiavelli
d661202054
Properly update resultset parameter when using QueryCallback template.
...
Fixes issue #3512
--HG--
branch : trunk
2010-08-20 13:30:49 +02:00
Machiavelli
a3270e79e3
Return proper MySQL connection for syncrhonous requests based on calling thread instead of bundled connection.
...
--HG--
branch : trunk
2010-08-20 12:44:08 +02:00
click
24d752e782
Core/Build: Fix non-PCH build, again... :P
...
--HG--
branch : trunk
2010-08-20 11:48:12 +02:00
azazel
812b6694f9
Core/DB scripts:
...
* provide more information in error messages for DB scripts
* cleanup in DB scripts code
--HG--
branch : trunk
2010-08-20 14:57:05 +06:00
click
a470c91bf0
Buildsystem/Macro: Use the correct number for Allendale-CPUs and fix a minor typo
...
--HG--
branch : trunk
2010-08-20 10:11:37 +02:00
click
6aa1731198
Buildsystem/Macro: Add support for Intel Family 6 Model 30 (Allendale) CPU optimizations (Based on Westmere)
...
--HG--
branch : trunk
2010-08-20 10:02:01 +02:00
azazel
a200de3b5f
Core
...
* Cleanup in LoadScripts method and related stuff (use enum instead of string to differentiate between script maps)
* Fix creation of id and sanity checks for spell_scripts. Should fix warnings about missing spells with id > 65535
--HG--
branch : trunk
2010-08-20 12:19:14 +06:00
azazel
acc43ea47d
Buildsystem: add missing argument to macro. Fixes CMake issues on Win
...
--HG--
branch : trunk
2010-08-20 12:08:12 +06:00
click
8d62f4e6ce
Buildsystem: Add helperscripts to detect SSE2 extensions, and optimize platform compileflags for the architecture
...
+ minifix in scripts (wrong includedir)
--HG--
branch : trunk
2010-08-20 04:09:39 +02:00
click
6501948dc8
Buildsystem/Core: Adjust filenames to their correct case
...
--HG--
branch : trunk
2010-08-20 02:10:08 +02:00
Spp
c75ab7fd28
Dungeon Finder: Add a check to avoid rolechecks with no dungeon (Only happen with groups loaded from DB)
...
This fixes a crash in UpdateProposal.
Updates issue 3465
--HG--
branch : trunk
2010-08-20 01:27:05 +02:00
silinoron
cf3c9b4ed6
merge
...
--HG--
branch : trunk
2010-08-19 16:13:42 -07:00
silinoron
ac59ff802b
Switch to using SIMD-oriented Fast Mersenne Twister for random number generation.
...
In testing, reduced random number generation time by a factor of 8-10.
Drops support for processors older than Pentium 4.
Drop Mersenne Twister library; use a C++ SFMT library.
--HG--
branch : trunk
2010-08-19 16:13:10 -07:00
John Holiver
ccd1e66e56
Core/Scripts: Onyxia movement before phase 2
...
--HG--
branch : trunk
2010-08-19 17:50:38 -03:00
click
21cf500cb1
Core/Scripts: Fix build - AND DON'T USE SPACES IN FOLDERNAMES PLEASEKTHX!
...
--HG--
branch : trunk
rename : src/server/scripts/Northrend/Icecrown Citadel/boss_lord_marrowgar.cpp => src/server/scripts/Northrend/IcecrownCitadel/boss_lord_marrowgar.cpp
rename : src/server/scripts/Northrend/Icecrown Citadel/icecrown_citadel.h => src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.h
rename : src/server/scripts/Northrend/Icecrown Citadel/instance_icecrown_citadel.cpp => src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp
2010-08-19 20:47:32 +02:00
silinoron
d58e19385f
Fix combustion crits with area of effect spells - patch by moriquendu.
...
--HG--
branch : trunk
2010-08-19 10:37:20 -07:00
azazel
5a237a8ea9
Add missing holiday id <-> BG id definition for AB (by Quriq14)
...
--HG--
branch : trunk
2010-08-19 22:24:22 +06:00
Machiavelli
717aac1663
Merge
...
--HG--
branch : trunk
2010-08-19 16:43:50 +02:00
Machiavelli
17d0382cd4
Fix a crash in transaction commands.
...
Fixes issue #3495
--HG--
branch : trunk
2010-08-19 16:41:43 +02:00
Shauren
a693f49bd1
Vehicles: Prohibit entering vehicle in combat only if it is a multi-passenger mount
...
Scripts/Icecrown Citadel: Changed Bone Spike id and remove teleport z+3 hack, its a vehicle, thx wowgargamel
Scripts/Icecrown Citadel: Fixed typo in variable name, thx Paradox
Scripts/Icecrown Citadel: Added warning emote for Bone Storm
--HG--
branch : trunk
2010-08-19 16:40:47 +02:00
Machiavelli
46438f9f92
- Call mysql_thread_end() for every deleted MySQLConnection instance, should fix the ¨Error in my_thread_global_end(): X threads didn't exit¨ issue. (Thanks to Aokromes for testing)
...
- Add some debug info to help trace down the other causes of the shutdown crash.
--HG--
branch : trunk
2010-08-19 16:35:52 +02:00
Machiavelli
7d915911f9
Properly end mysql connections and libraries on exit.
...
--HG--
branch : trunk
2010-08-19 15:47:29 +02:00
Machiavelli
7bac588be2
Solve one of the few culprits that cause authserver and worldserver to exit improperly after the recent database layer changes.
...
--HG--
branch : trunk
2010-08-19 15:37:53 +02:00
QAston
30bcf8c659
Scripts/Spell: extend SpellScript class: add target aura accessors and functions which prevent various effects of the spell from being executed. Check out SpellScript.h for details
...
--HG--
branch : trunk
2010-08-19 14:31:31 +02:00
azazel
d4605c5f7f
Fix (in theory) bug (already tapped error) for spells with banish mechanics (Banish, Cyclone).
...
Closes issue #1945 .
Closes issue #2402 .
--HG--
branch : trunk
2010-08-19 16:20:06 +06:00
Spp
72e13547d0
Config: Cosmetic changes in worldserver.conf file
...
--HG--
branch : trunk
2010-08-19 10:55:11 +02:00
Supabad
cd7dac2957
Scripting: Skadi the Ruthless can now be removed from his drake with 3 harpoon strikes
...
changed on patch 3.3.2 thanks to aokromes for pointing the change
--HG--
branch : trunk
2010-08-19 10:56:49 +02:00
azazel
9b13fa8688
Fix typo in SQL (yet again, now with correct spell id)
...
--HG--
branch : trunk
2010-08-19 11:27:30 +06:00
azazel
888a13fb15
Fix typo in SQL
...
--HG--
branch : trunk
2010-08-19 09:54:27 +06:00
Machiavelli
3932fc8c83
- Fix Linux build (huge thanks to Aokromes for testing as always)
...
- Some work towards resolving the crash on shutdown by implementing a shutdown task
--HG--
branch : trunk
2010-08-19 00:13:09 +02:00
Spp
fb9c6c96c7
Dungeon Finder: Some optimizations to find algorithm
...
* Select first match as valid (Before it was storing all possible and later selecting one)
* Add some checks to make sure no unnecessary calcs are done
--HG--
branch : trunk
2010-08-18 22:50:04 +02:00
Spp
eebb36ba58
Dungeon Finder: Fix a possible crash in UpdateProposal
...
--HG--
branch : trunk
2010-08-18 22:32:11 +02:00
Machiavelli
d47b9851cd
This should fix linux build - please confirm.
...
--HG--
branch : trunk
2010-08-18 21:25:42 +02:00
click
95f0d56077
Core/Scripts: Fix even more scriptbugs from convertion (thanks to Kierkegaard)
...
--HG--
branch : trunk
2010-08-18 20:35:29 +02:00
John Holiver
8bf208c0fd
Core/Spells: SPELL_ATTR_CU_IGNORE_ARMOR to Impale(65919) several difficulties
...
--HG--
branch : trunk
2010-08-18 15:21:24 -03:00
Machiavelli
d845a903b1
DBLayer:
...
- Use ACE_Future and ACE_Future_Set for async SQL queries with callback
* Callbacks will now be executed from the thread and object that scheduled the request, instead of the world runnable thread (and thus are no longer dependent on the 50ms forced sleep time).
* This design gets rid of a potential DOS loophole in the resultqueue system - unique requests will be cancelled when re-requested.
- Drop now redundant SQLQueryTask, SQLResultQueue, SQLResultQueueTask operations.
- Drop now redundant CharacterHandler class
- Change static callback functions in WorldSession to normal functions.
Thanks to Derex and Zor for advice along the way.
--HG--
branch : trunk
2010-08-18 19:48:51 +02:00
QAston
2ffe785765
Core/Spells: add SPELL_ATTR_CU_IGNORE_ARMOR to the avalible custom attribute list, make some spells use the attribute. Research made with JohnHoliver and Shauren
...
--HG--
branch : trunk
2010-08-18 19:26:07 +02:00
enjoi
b8a613647f
Core/ObjectMgr: Prevent vehicleid from having an incorrect value when reloaded with .reload creature_template.
...
--HG--
branch : trunk
2010-08-18 15:49:51 +01:00
Shauren
71a5320eda
Scripts: Added script for Lord Marrowgar
...
Added base script for Icecrown Citadel instance
--HG--
branch : trunk
2010-08-18 17:19:47 +02:00
QAston
cb70376c6e
*Backout radaaba37a4. Brings back command table caching. Thanks to Machiavelli for spotting the issue.
...
--HG--
branch : trunk
2010-08-18 15:06:28 +02:00
QAston
5e78e222c1
Core/Spells: Implement TARGET_DEST_CHANNEL_CASTER(106) and TARGET_GAMEOBJECT_AREA_PATH(108). Rename TARGET_UNIT_CHANNEL to TARGET_UNIT_CHANNEL_TARGET, TARGET_DEST_CHANNEL to TARGET_DEST_CHANNEL_TARGET
...
--HG--
branch : trunk
2010-08-18 15:04:00 +02:00
azazel
9d45f29593
Making sure CreaturesAddon are re-loaded after creature evade (by NoFantasy).
...
--HG--
branch : trunk
2010-08-18 18:10:42 +06:00
azazel
694ab45bc7
Add missing header. Now project should compile without PCH as well
...
--HG--
branch : trunk
2010-08-18 14:09:48 +06:00