Commit Graph

98 Commits

Author SHA1 Message Date
maximius
2adb1b8d4c *Revert some (apparently unreliable) asserts.. they're -almost- never false, but 'almost' isn't good enough.
--HG--
branch : trunk
2009-11-04 17:10:43 -08:00
maximius
558ceeb929 *Fix a vehicle crash, thanks Aokromes
--HG--
branch : trunk
2009-11-04 16:37:55 -08:00
maximius
1d7f2fc243 *Update WorldSession::HandleMovementOpcodes with some new information on how vehicles behave, and do a little bit of cleanup.
--HG--
branch : trunk
2009-11-03 22:28:04 -08:00
maximius
ffb28c06a7 * Better solution to No Fly zones by Spp, closes #4
--HG--
branch : trunk
2009-11-02 20:30:25 -08:00
tartalo
bcfff09c74 *Implementation of 'No Fly Zone' (Dalaran and Wintergrasp), by Spp
--HG--
branch : trunk
2009-11-02 21:05:54 +01:00
maximius
d22768a6b5 *Cleanup
--HG--
branch : trunk
2009-10-18 18:38:46 -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
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
140ec674a0 Backed out changeset d3fe2d6d504a (please test your patches thoroughly before getting me to push them ogeraisi)
--HG--
branch : trunk
2009-09-14 16:49:23 -07:00
maximius
b37f9b1e55 *Merged MaNGOS [8458], [8475], [8476] by ogeraisi, thanks to all authors :)
--HG--
branch : trunk
2009-09-14 16:02:13 -07:00
megamage
2a4c9bcaf9 *Make position as a class;
--HG--
branch : trunk
2009-08-29 14:58:45 -05:00
megamage
eeb18e51bb *Correctly process more movement packets. Author: VladimirMangos
--HG--
branch : trunk
2009-08-27 20:14:50 -05:00
megamage
f74a134ed6 *Fix a crash caused by leave channel.
--HG--
branch : trunk
2009-08-26 14:06:12 -05:00
megamage
785577e170 [8403] Fixed cast spell opcode parsing for some cases with additional data. Author: VladimirMangos
--HG--
branch : trunk
2009-08-24 19:33:34 -05:00
megamage
1ee90e1022 *Update vehicle system. Make vehicle a seperate class from creature.
--HG--
branch : trunk
2009-08-23 22:09:43 -05:00
megamage
7c72076355 *Fix the bug that some vehicles cannot fly.
--HG--
branch : trunk
2009-08-23 00:38:19 -05:00
megamage
44830d9d99 [8393] Fixed format CMSG_FORCE_MOVE_UNROOT_ACK and CMSG_FORCE_MOVE_ROOT_ACK. Author: VladimirMangos
Also avoid packet tail warnings spam at rejected movement packets.

--HG--
branch : trunk
2009-08-19 17:19:50 -05:00
megamage
e954904e6d [8378] Use exceptions instead of explicit size checking for each packet Author: arrai
CHECK_PACKET_SIZE was pretty error prone; once it was forgotten mangosd
    could crash due to the asserts in ByteBuffer.h. That was exploitable by
    malicious players.
    Furthermore, there were duplicate checks: Additionally to
    CHECK_PACKET_SIZE, the ByteBuffer assertions keept an eye
    on not exceeding the packet boundaries - just to crash the server for
    sure in such a case.
    To prevent memory leaks or other undesirable states, please read in
    every handler all variables _before_ doing any concrete handling.

--HG--
branch : trunk
2009-08-19 16:26:22 -05:00
megamage
284b0063a8 *A hacky fix of the crash happening when player is teleported during logout.
--HG--
branch : trunk
2009-08-13 10:01:00 -05:00
QAston
bee1dff87f *Use #defines instead of spellids for often used spells.
*Make recently broken talent Improved Healthstone work again - by iadus3.

--HG--
branch : trunk
2009-08-12 18:51:19 +02:00
megamage
a3ee65bee1 [8327] Fixed recieved packet size check for MSG_MOVE_TELEPORT_ACK. Author: VladimirMangos
--HG--
branch : trunk
2009-08-08 12:35:09 -05:00
megamage
ecdba0cbba *Only allow mover to turn when it is on vehicle.
--HG--
branch : trunk
2009-08-08 11:55:49 -05:00
QAston
08cd876f36 *Update zone for players after adding to map. - by VladimirMangos
*Skip instance loading for player with flypath/on transport.

--HG--
branch : trunk
2009-08-03 19:48:28 +02:00
QAston
8777efd03c *Add some crash prevention checks.
--HG--
branch : trunk
2009-08-03 12:52:31 +02:00
QAston
aa60def6ac *Teleport player to homebind if instance can't be created in WorldSession::HandleMoveWorldportAckOpcode.
--HG--
branch : trunk
2009-08-01 20:23:23 +02:00
QAston
1d96091d2a *Improvements in map managing.
--HG--
branch : trunk
2009-08-01 00:20:32 +02:00
QAston
94992adb64 *Fix DK presences and their improved versions - original patch by thenecromancer
*Port player to homebind if instance cannot be created in WorldSession::HandleMoveWorldportAckOpcode.

--HG--
branch : trunk
2009-07-19 14:02:52 +02:00
QAston
8499812eb6 *Update heal calculation formula for Death Strike and apply improved death strike bonus if avalible
*Use floor() function for rounding in rep gain calculation
*Add some debug info to WorldSession::HandleMoveWorldportAckOpcode()

--HG--
branch : trunk
2009-07-18 15:00:36 +02:00
megamage
208087ff6e [8182] Store and use Map* pointer in WorldObject instead map ids for speedup Author: Ambal
Also some code logic cleanups.
    Changes let make more cleanups in base map access and other places,
    but this chnages not inlcuded in patch.

*This patch may cause crash.

--HG--
branch : trunk
2009-07-16 11:49:00 +08:00
megamage
b5d802b70c [8151] Fixed some format warnings and typos. Author: Win32
--HG--
branch : trunk
2009-07-12 17:52:27 +08:00
megamage
4a8a89e1db [8103] More wide use IsInWorld checks and delayed at teleport operations. Author: Ambal
* IsInWorld used to prevent return unexpected not in world objects.
    * Delayed operations need to process its in world state.

--HG--
branch : trunk
2009-07-01 18:36:03 -05:00
megamage
3cf2be6042 [8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests. Author: Ambal
--HG--
branch : trunk
2009-06-16 11:19:59 -05:00
megamage
b9610f27dd *Check movementflag to interrupt casting instead of checking position.
*Also some other fixes about movement flags.

--HG--
branch : trunk
2009-06-15 12:02:55 -05:00
megamage
e2d5c0d3fb *Fix a bug that flying puppet interrupts caster's channelling.
--HG--
branch : trunk
2009-06-14 21:02:52 -05:00
megamage
4e005c3070 [8013] Fixed SMSG_RAID_INSTANCE_INFO opcode, some other fixes. Author: tomrus88
--HG--
branch : trunk
2009-06-14 10:19:44 -05:00
megamage
ee9c12b480 *Some fix of vehicles. Thanks to Seizerkiller.
--HG--
branch : trunk
2009-06-13 09:18:54 -05:00
megamage
9d670fe6f5 *Switch to support client version 3.1.3
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash.

Source: Mangos
Thanks to TOM_RUS for most work to make this switch possible ;)

--HG--
branch : trunk
2009-06-11 00:45:59 -05:00
megamage
e858ac91eb *Fix the display bug of vehicles in populated area.
--HG--
branch : trunk
2009-06-03 21:47:23 -05:00
megamage
50015a1b4e *Backout 3672.
--HG--
branch : trunk
2009-06-01 11:07:51 -05:00
megamage
43d12d1303 *Fix a crash caused by possessed creatures. Thanks to Amit86
--HG--
branch : trunk
2009-05-31 23:15:06 -05:00
megamage
f92e8315cf [7918] Improve portability in work with uint64 string format specifiers and in code literals. Author: VladimirMangos
* Replace platform seelction MaNGOS code for select format descriptor for uint64 by using ACE define.
      I64FMTD renamed to UI64FMTD for more clear name.
    * Add new define UI64LIT (base at ACE seelction) for build portables uint64 literals.
      Please always use UI64LIT(0x00001) instead less portable 0x00001LL

--HG--
branch : trunk
2009-05-31 16:15:12 -05:00
megamage
2475390852 *Fix a bug that player can change to an occupied seat on vehicle.
(The commit message of the last rev should be: do not allow player to use unusable vehicle seat)

--HG--
branch : trunk
2009-05-23 20:41:48 -05:00
megamage
e69d2cbed9 [7776] Completed implementation of CMSG_SPELLCLICK Author: arrai
For vehicles, you have to add the correct SPELL_AURA_CONTROL_VEHICLE spells to
    npc_spellclick_spells, otherwise you won't be able to use them

--HG--
branch : trunk
2009-05-05 16:56:15 -05:00
megamage
de11b9e901 [7730] Some optimizantion and code style. Author: zhenya
--HG--
branch : trunk
2009-04-29 00:26:07 -05:00
megamage
a72f23f56b *Some update of vehicle code.
--HG--
branch : trunk
2009-04-25 08:58:16 -05:00
megamage
84e9ffb487 *Set mover based on client response.
--HG--
branch : trunk
2009-04-23 21:43:20 -05:00
megamage
17056452d7 *Fix a typo that makes players drop off the transport.
--HG--
branch : trunk
2009-04-23 21:33:42 -05:00
megamage
bce871f253 *Fix a client crash caused by transport.
--HG--
branch : trunk
2009-04-23 00:12:29 -05:00