Schmoozerd
f80629e307
Various Cleanups (game A-B)
2012-07-19 21:45:38 +02:00
darkstalker
f777665d48
[12021] Fix some warnings
...
Thx to stfx for porting
Signed-off-by: stfx <stfx@hotmail.de>
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-25 15:40:27 +02:00
stfx
f3f3349661
[11973] Various Cleanups
...
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-22 19:48:05 +02:00
Schmoozerd
8068dcf6dd
[11875] Update Copyright notice to year 2012
...
Start timemachine and a Happy new year to all!
2012-01-16 17:43:59 +01:00
DaC
248bfd2a81
[11651] Not alow show arena statistics before arena end.
2011-06-19 05:18:59 +04:00
VladimirMangos
719e298795
[11470] Final cleanup uint64 guid cases
...
Also drop logout player update fields cleanup that in any cases not saved.
2011-05-11 21:36:27 +04:00
VladimirMangos
ef6a48fe03
[11465] non-ObjectGuid guids in random places.
...
Only ChannelMgr code wide use uint64 guids now, and Map object stores.
2011-05-10 21:27:49 +04:00
VladimirMangos
adcb84a325
[11355] Use ArenaType enum instead raw values
...
* Drop duplicate ArenaTeamTypes
* Use enum type where appropriate
* More strict check integrity arena team data at loading.
2011-04-15 03:19:12 +04:00
VladimirMangos
e605b203e2
[11351] Calculate avg. personal rating in more correct way.
2011-04-14 15:44:25 +04:00
VladimirMangos
0912c17cee
[11350] Revert "[11349] Instead group online players use arena team full list for claculate avg. personal rating."
...
This reverts commit aae93a675ca4dc4a936a1f90ad4a67f91161f697.
2011-04-14 15:43:47 +04:00
VladimirMangos
9c34efec41
[11349] Instead group online players use arena team full list for claculate avg. personal rating.
2011-04-14 05:14:42 +04:00
VladimirMangos
bf0ecf6e71
[10947] Update copyright notice for 2011 year.
2011-01-01 20:33:43 +03:00
zergtmn
ec6089bbd8
[10935] Move script calls to ScriptMgr
...
- Script library presence is now optional.
- Some script hooks have new names. Scripting libraries need to be adjusted accordingly.
Signed-off-by: zergtmn <zerg@myisp.com>
2010-12-29 21:48:06 +05:00
Ambal
b11820593c
[10924] Send time diff between Update() calls for object - should help with mob respawn on inactive grids etc. Based on patches by VladimirMangos and cipherCOM. All issues from previous patches should be finally fixed now.
...
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-12-27 22:27:20 +02:00
VladimirMangos
1a7dce690a
[10871] Avoid lost arena match at leave queue (before invite to match)
2010-12-13 21:35:58 +03:00
VladimirMangos
3de8212e03
[10801] More ObjectGuid uses in battleground code.
2010-12-01 13:29:30 +03:00
VladimirMangos
6d13cd6553
[10800] Use ObjectGuid in some battleground structures.
...
Also fix some catches bugs in code in result.
2010-12-01 11:24:35 +03:00
VladimirMangos
cc0655a402
[10782] Use Team enum types in all appropriate cases and catches bug in result fix.
...
* Fixed wrong arenaid use at leave arena queue.
* Fixed memory lost and etc at not virtual EndBattleground call
* Fixed crash at arena join with fake data from client.
* Code cleanups.
2010-11-25 01:11:17 +03:00
VladimirMangos
851e15c70a
[10635] Convert many opcode handlers to ObjectGuid use.
...
Also re-enabled anticheating check for bank window open
base at .bank command access rights.
2010-10-21 10:43:14 +04:00
VladimirMangos
31c9efd219
[10629] Drop function GuidHigh2TypeId
...
Added ObjectGuid version Aura::GetCasterGuid()
But for prevent big problen with backporting AuraHolder
to mangos-0.12 in most cases still used old uint64 version
Aura::GetCasterGUID.
Recommended use new version where possible in clean way
as done for some cases in commit already.
2010-10-20 09:12:43 +04:00
VladimirMangos
811a86baf5
[10619] Clarify premade groups mode config option.
...
Also prevent mark group as premade with 0 time wait.
It's any way useless becase at next tick group moved to normal team mode.
2010-10-18 09:13:07 +04:00
VladimirMangos
22b515718f
[10380] Finaly drop MAKE_NEW_GUID.
...
This meaning that ObjectGuid only proper way create guid from lowguid now.
But packet handlers still generate uint64 guids. Some DB fields also loaded uint64 values.
Also possible existed not catches et uint32->uint64 assigns.
2010-08-19 12:51:16 +04:00
VladimirMangos
dbe9c6f190
[10371] More wide use ObjectGuid in group code.
...
Also drop some unused functions.
And fix some uint32 -> uint6 guid assigns.
2010-08-18 13:43:55 +04:00
Lynx3d
01d326b90d
[10202] Rename isInFlight() to IsTaxiFlying() and UNIT_STAT_IN_FLIGHT to UNIT_STAT_TAXI_FLIGHT.
...
Also add IsFreeFlying() function to Player class.
2010-07-17 02:06:28 +02:00
VladimirMangos
722135b326
[9838] More log filters and macro uses.
...
* LogFilter_Weather
* LogFilter_PeriodicAffects
* LogFilter_PlayerMoves
* LogFilter_SQLText
* LogFilter_AIAndMovegens
* LogFilter_PlayerStats
2010-05-05 18:46:10 +04:00
tomrus88
9836bcbbaa
Added enum for SMSG_GROUP_JOINED_BATTLEGROUND opcode.
...
Use this enum where possible.
Some misc fixes.
2010-04-03 22:22:30 +04:00
tomrus88
2151704669
[9358] Not use PLAYER_FIELD_ARENA_TEAM_INFO_1_1 directly.
2010-02-11 19:30:44 +03:00
VladimirMangos
1adcf67349
[9184] Fixed unread packet tail spam for CMSG_LEAVE_BATTLEFIELD
2010-01-16 03:12:54 +03:00
VladimirMangos
63709fdc49
Use PVPDificulty.dbc for bg/arena bracket selection (levels and difficulty)
2010-01-09 03:36:27 +03:00
VladimirMangos
3e3c090348
[9129] Rename BG/arena queue_id to bracket_id and related functions/etc
...
This is more consistent to wide used terms
Also some other cleanups.
2010-01-08 22:40:34 +03:00
VladimirMangos
fe6e2e1746
[9122] Updated copyright notice for new year.
...
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
balrok
1de6692e04
[8926] BattleGround: call correct function at playerleave
...
it will now correctly drop the flag and correctly remove the player from
eye of the storm objectives
+ also avoid the spamming of all "Player not found!" messages in battlegrounds
maybe all existing "player not found!" places should now get an assert(false)
since this shouldn't happen anymore
+ also better error output in GetBattleGroundQueueIdFromLevel
2009-12-06 09:50:35 +01:00
NoFantasy
10ebadcadf
[8871] Avoid use StopMoving when creature is already stopped.
...
Some additional code cleanup in related code.
2009-11-25 12:16:08 +01:00
Triply
ef26908948
[8815] Reimplemented bgQueues announces, fixed possible problems with multithreaded queues Mutexes have to be still commented because of ACE bug. When player enters new bg from battleground, do not rewrite his m_BgData with zeros. patch is tested.
...
Signed-off-by: Triply <triply@getmangos.com>
2009-11-14 18:37:16 +01:00
XTZGZoReX
a69fe0cb1d
[8813] Re-implement some changes in [8799], but with mutex calls commented.
2009-11-14 15:07:04 +01:00
XTZGZoReX
ec808c9d3d
[8809] Revert "[8799] Implemented thread safe bg queue updates."
...
This reverts commit 72f7a7ee56c63672faa7786b1d162a7a3b9ab406.
This is temporary revert due to bug in ACE_Thread_Mutex.
Original code itself in commit has no problem.
Conflicts:
src/shared/revision_nr.h
2009-11-12 16:00:28 +01:00
Triply
ee0fa56166
[8799] Implemented thread safe bg queue updates.
...
Signed-off-by: Triply <triply@getmangos.com>
2009-11-09 22:25:54 +01:00
XTZGZoReX
0734adb746
[8789] Rename several singleton macros to use more consistent names.
...
* objmgr -> sObjectMgr
* spellmgr -> sSpellMgr
* WaypointMgr -> sWaypointMgr
* poolhandler -> sPoolMgr
* objaccessor -> sObjectAccessor
* mapmgr -> sMapMgr
* sInstanceSaveManager -> sInstanceSaveMgr
* ticketmgr -> sTicketMgr
* CreatureEAI_Mgr -> sEventAIMgr
* auctionmgr -> sAuctionMgr
* achievementmgr -> sAchievementMgr
2009-11-08 12:11:34 +01:00
balrok
caf4732e38
[8612] better error-check when getting bgTypeId from Battlemasterentry
2009-10-10 01:40:22 +02:00
balrok
dc96ddfbfb
[8599] removed now unneeded parameter from GetBattleGroundQueueIdFromLevel
...
cause alterac valley is not handled special since 3.2.2
this function also works without bgtypeid parameter
2009-10-07 15:36:43 +02:00
VladimirMangos
f37f27d3c2
[8589] Merge branch '320' - Switch to support client version 3.2.2A
...
You need extract new dbc/map/vmaps for correct work.
And apply ofc sql updates that including character convertion.
Special thanks to TOM_RUS for prepering this switch :)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-06 12:59:26 +04:00
VladimirMangos
59befa2e0e
Merge branch 'master' into 320
2009-10-02 19:09:06 +04:00
VladimirMangos
30105b8a0d
[8577] Remove redundent #include "ObjectAccessor.h"
2009-10-01 19:30:30 +04:00
tomrus88
546f7a7fe5
Merge commit 'origin/master' into 320
...
Conflicts:
src/game/BattleGround.cpp
2009-09-28 19:52:54 +04:00
balrok
1f9b4ca4c3
[8553] removed spiritguide from code
...
they basicaly should
*autocast 22011
*give player after gossiphello buff 2584
*port players away to another spiritguides, when they die
so this can be done by a script
and maybe eventai
2009-09-28 16:45:06 +02:00
tomrus88
fe7330b0b8
Fixed bg opcode.
2009-08-23 18:57:48 +04:00
tomrus88
373a837aa5
Merge commit 'origin/master' into 320
2009-08-18 09:30:02 +04:00
VladimirMangos
2b534cbc23
[8382] Implement ByteArray functions for skip read of fields not needed for server in received packets.
...
* Use this fucntions in some case.
* Change some packets to form: read fields first check later for better control recieved packets structure.
* Fix CMSG_STAND_STATE_CHANGE packet structure to more correct.
2009-08-18 03:49:50 +04:00
tomrus88
f553cf2887
Merge commit 'origin/master' into 320
...
Conflicts:
src/game/CharacterHandler.cpp
src/game/DuelHandler.cpp
src/game/ItemHandler.cpp
src/game/Mail.cpp
src/game/MiscHandler.cpp
src/game/MovementHandler.cpp
src/game/TaxiHandler.cpp
src/game/WorldSession.h
src/game/WorldSocket.cpp
2009-08-17 10:31:02 +04:00
arrai
a24f39a36f
[8378] Use exceptions instead of explicit size checking for each packet
...
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.
2009-08-16 23:50:22 +02:00