Commit Graph

543 Commits

Author SHA1 Message Date
silver1ce
f82d5cb3fc fixed the bug that GetVmapHeight returns incorrect height on terrains(flying units fall below map etc)
also unlocked max ray lenght for getHeight, by default it's 10 yards

--HG--
branch : trunk
2010-01-06 12:15:02 +02:00
_manuel_
0e18bc37c2 Removed moveflags column from creature_addon and creature_template_addon. Thanks to Zor and raczman.
--HG--
branch : trunk
2010-01-02 19:52:08 -03:00
XTZGZoReX
03890fbe48 * Partial revert of [6833 : 970affc03278] - code style fixes + a warning fix preserved. Don't ask me why, but apparently time CAN be negative in TC. Funny stuff.
--HG--
branch : trunk
2009-12-29 00:27:44 +01:00
XTZGZoReX
a5f681fe9e * Time, by definition, cannot be negative for a timer, so this should be uint32, not int32. :)
--HG--
branch : trunk
2009-12-28 21:23:31 +01:00
n0n4m3
250a00cc1c Temporary revert 6743 commit. I fix this patch across 1-2 days.
--HG--
branch : trunk
2009-12-24 10:20:15 +01:00
n0n4m3
3fe0bc5254 Replaced time(NULL) on sGameTime.GetGameTime() this is used for better performance.
Original Timer.h divided into 2 parts. Shared project has no need to know about GameTime Singleton.
2 Identical structures with different types are now replaced with one generic templated structure and 2 typedefs.

--HG--
branch : trunk
2009-12-23 08:04:10 +01:00
Brian
5300226fee * Added support for using a lookup table for creature mana / health
* As long as creature level, class, and the proper expansion they are from are
* set in creature_template, you will have 100% accurate health and mana.
* Research and base stats table done by Malcrom -- THANK YOU!
* Original patch by Kudlaty -- THANK YOU!
* Updated and enhanced by Machiavelli - THANK YOU!
* Optimizations by w12x, MrSmite, and XTZGZoReX -- THANK YOU!
* Final code updating for current rev by XTZGZoReX -- THANK YOU!

--HG--
branch : trunk
2009-12-20 20:23:18 -07:00
Rat
6fe36efe0f *apply trinity style to whole source
*comment out all mangos to trinity defines
*this will make merging a little harder, but code will be more clear

--HG--
branch : trunk
2009-12-20 15:20:04 +01:00
win32
7c9f6b4bc3 Merge MaNGOS, Gossip System. Autor NoFantasy.
* DB support required
* Closes #859

--HG--
branch : trunk
2009-12-20 13:35:08 +02:00
n0n4m3
acc95b66c9 Add peeking support to LockedQueue. by XTZGZoReX
--HG--
branch : trunk
2009-12-19 19:52:23 +01:00
n0n4m3
243f33b5ea Implement new visibility system, based on Silverice patch for mangos
--HG--
branch : trunk
2009-12-19 10:12:40 +01:00
maximius
dc1207139a *Cleanup, proper indentation, and remove some wrong/irrelevant comments copied from custom patches..
--HG--
branch : trunk
2009-12-18 13:41:30 -08:00
n0n4m3
8b95981ed0 Update DataBase and Realm code for 322a
--HG--
branch : trunk
2009-12-17 12:42:53 +01:00
n0n4m3
2028f0658b Removed mtmaps OpenMP
Implement mtmaps based on ACE
For stable work MapUpdate.Threads=2 in config

--HG--
branch : trunk
2009-12-17 07:34:00 +01:00
Paradox
dc6f2cd40e Adds Debug or Release to the Full Revision string, fully tested under Windows.
--HG--
branch : trunk
2009-12-14 14:50:46 -05:00
Brian
2547e5c109 * Removed all unneeded Makefile.am files that were leftover from merges with
* MaNGOS

--HG--
branch : trunk
2009-12-11 13:52:46 -07:00
Brian
7d754c3f7f * Added support for questItem5 and questItem6 in creature and gameobject
* templates.
*
* Thanks to Malcrom for doing the research.

--HG--
branch : trunk
2009-11-26 12:23:33 -07:00
maximius
654519d1a6 *Some cleanup (mostly whitespace changes)
--HG--
branch : trunk
2009-11-20 19:11:28 -08:00
maximius
85d7084e85 *Fix usage of grid removal state, thanks Sisif
--HG--
branch : trunk
2009-10-31 17:34:35 -07:00
maximius
3f338cc1c3 *Massive cleanup redux.
--HG--
branch : trunk
2009-10-17 16:20:24 -07:00
maximius
e585187b24 *Backed out changeset 3be01fb200a5
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius
26b5e033ff *Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
maximius
a73b03b7ea *New SQL to fix broken data blobs, if any. Must be run manually.
*Cleanup, fix some typos, and fix the final heal of Lifebloom. Thanks ogeraisi.

--HG--
branch : trunk
2009-10-02 02:40:35 -07:00
maximius
9bb508ae19 *Proper data blob updating, thanks ogeraisi.
--HG--
branch : trunk
2009-10-02 01:26:36 -07:00
maximius
3c270f97ee *Fix typo, and try to avoid killing the dead..
--HG--
branch : trunk
2009-10-02 01:06:06 -07:00
maximius
340db23ea9 *Didn't mean to remove that.. there shouldn't be negative values in the data blob, unless I'm mistaken.
--HG--
branch : trunk
2009-10-01 13:35:39 -07:00
maximius
62ed2e0ef4 *Better support for signed input. I'm not sure if this will fix anything.
--HG--
branch : trunk
2009-10-01 13:34:06 -07:00
maximius
3c43ef7157 *Better support for negatives.
--HG--
branch : trunk
2009-09-30 04:18:07 -07:00
maximius
5737077371 *Fix linux build
--HG--
branch : trunk
2009-09-30 04:11:14 -07:00
maximius
1539ca3605 *Too many parameters.
--HG--
branch : trunk
2009-09-30 03:35:34 -07:00
maximius
f0d5924891 *Cleanup, add two new functions, attempt to fix arena point flushing for offline players.
--HG--
branch : trunk
2009-09-30 03:29:08 -07:00
maximius
0cf75ef9ea *Wintergrasp: Prevent defenders team to click the relic. Patch by Spp.
*Zum'Rah Area Trigger Script, Zum'Rah should become hostile when approached. By totoro.
*Judgement of Light PPM based, not 100%. By Drevi.
*Fix Deflection Exploit. By manuel, thanks to TheNecromancer and Gyullo.
*Correct Wintergrasp Tenacity formulas, by Gyullo.
*A Spirit Guide Escort Quest, code from SD2, patch by manuel.
*TrullyOne/MeanMachine Waypoint System Restored. Patch by XTElite1.

--HG--
branch : trunk
2009-09-19 12:13:08 -07:00
Chaz Brown
15d85229fa Replace useless code with more useful code.
--HG--
branch : trunk
2009-09-19 00:51:47 -04:00
maximius
333f1c9d72 *[8475] fixed some gcc-warnings Author: balrok
*[8476] Revert some recent cleanup changes, some other fixes and cleanups. Author: VladimirMangos
*[8489] Fixed player visibility update in case view point different from player itself. Author: SilverIce
*[8493] Avoid unexpected multiply error messages at wrong `quest_template`.`RewSpell*` Author: VladimirMangos
*[8496] Resolve some #include cycles and unsafe code.
* Common.h -> Threading.h -> Errors.h -> Common.h
* Remove reduncdent #include "ByteBuffer.h" in headers
* Remove redundent #include "Auth/BigNumber.h" in headers
* Avoid multyply data copy at use some now dropped functions in BigNumber.
* Avoid copy fixed byte count from byte arrays with unknown real size created from BigNumber.
* Avoid possible problems for build mangos at different platform or compilers. Author: VladimirMangos.
*[8501] Apply code style and cleanups to some Player functions. Author: VladimirMangos.
*[8502] Disable quests related to specific game events at startup if event not active. Also rename member boolean variable. Author: NoFantasy
*[8506] Add check for IsAutoComplete() in SendPreparedQuest().
For cases where quest is repeatable but has Method!=0, QuestDetails must be sent instead of RequestItems.
Some additional code cleanup. Author: NoFantasy
*[8507] Check amount of spawned pools before decrement to avoid unexpected result. Also rename variable to more meaningful name. Signed-off-by: NoFantasy <nofantasy@nf.no>

Thanks to Stryker and onkelz28!

--HG--
branch : trunk
2009-09-18 14:10:37 -07:00
maximius
b4a13eff51 *Missed some changes
--HG--
branch : trunk
2009-09-11 13:42:39 -07:00
maximius
aed229dfe6 *[8463] Fixed race conditions in LockedQueue. Author: XTZGZoReX
--HG--
branch : trunk
2009-09-11 13:41:37 -07:00
Kudlaty
b287288888 Fix compatibility problems with PostgreSQL. Patch by Azuritus
--HG--
branch : trunk
2009-09-10 22:40:40 +02:00
Chaz Brown
ada432aa76 Fix some recently added tabs to spaces and fix mem leak - patch provided by Onkelz
--HG--
branch : trunk
2009-09-09 13:04:58 -04:00
megamage
4d94b923ef [8453] Make more informative error output in case empty version tables. Author: VladimirMangos
--HG--
branch : trunk
2009-09-02 18:32:29 -05:00
megamage
ea12ff233b [8450] Prevented using of plaintext passwords in sql queries Author: arrai
--HG--
branch : trunk
2009-09-02 18:14:10 -05:00
megamage
790c5348a3 [8445] Fixed redundant calculation of v and s on every login Author: arrai
The SRP-6 specifications clearly say, that v and s are only to be
    calculated on registering a user and changing his password; calculating
    them on every login is plain waste.

--HG--
branch : trunk
2009-09-02 16:22:32 -05:00
megamage
176a710e72 [8442] Fixed displaying return button in mails Author: arrai
--HG--
branch : trunk
2009-09-01 17:09:39 -05:00
megamage
21074bee8a *Use light red in error log. By MrSmite
--HG--
branch : trunk
2009-08-27 20:53:49 -05:00
Rat
5be01b1d14 *temp fix for the new "huge icons in chat" exploit
*you have to enable ChatFakeMessagePreventing in config file to work

--HG--
branch : trunk
2009-08-28 00:31:27 +02:00
QAston
94b8532c4f *Fix build with GCC.
--HG--
branch : trunk
2009-08-27 17:59:01 +02:00
QAston
6b703d600b *Add spell_dbc table to store dbc entries not present in client
*Remove workaround from Demonic Circle code and use the sql table instead.

--HG--
branch : trunk
2009-08-27 17:44:30 +02:00
megamage
978d139932 [8395] Improved TimeStringToSecs Author: arrai
--HG--
branch : trunk
2009-08-24 18:59:46 -05:00
megamage
34a95e7fa8 [8390] Fixed log output work after recent replace UTF8PRINT macro. Author: VladimirMangos
--HG--
branch : trunk
2009-08-19 17:14:18 -05:00
megamage
c911772125 [8389] Implement check really read received packet size and warning it not all data read. Author: VladimirMangos
* This let more easy catch packet structure chnages at client switch.
    * Fixed structure CMSG_GUILD_BANK_SWAP_ITEMS
    * Fixed structure CMSG_SPLIT_ITEM, CMSG_SELL_ITEM
    * Added read data amount fixes for some other packets.

    Thanks to TOM_RUS in help check correct packets structure.

    Note: not all packets possible fixed. Please report for not fixed cases at errors:
    "opcode %s (0x%.4X) have unprocessed tail data (read stop at %u from %u)"

--HG--
branch : trunk
2009-08-19 17:07:21 -05:00
megamage
f5085b2f39 [8388] Replaced UTF8PRINT macro by a function
Should also fix possible color leak on Windows CLI.

    Signed-off-by: freghar <compmancz@gmail.com>

--HG--
branch : trunk
2009-08-19 17:02:29 -05:00