Commit graph

22 commits

Author SHA1 Message Date
VladimirMangos
f4adf83cd7 [7688] Move Get*IfCanInteractWith to Player including renamed IsGameObjectOfTypeInRange. 2009-04-19 22:54:40 +04:00
arrai
a0ef77af5b [7659] Added several security checks to prevent cheating using facked packets 2009-04-13 02:16:01 +02:00
balrok
6c39db38f4 removed unneeded World.h includes
this is done by this script:
ack -c "World.h" | ack :1 | sed 's/:1//' | xargs grep -c sWorld | grep :0 | sed 's/:0//' | xargs sed -i '/#include "World.h"/d'
i didn't checked every change but gcc haven't complained
2009-03-08 01:26:52 +03:00
VladimirMangos
b9326100ea [7360] Use defines instead harcoded item prototype array sizes. 2009-03-01 00:32:37 +03:00
VladimirMangos
9b3daf3933 [7330] Code warnings and style cleanups. Some bugs fixes.
1) comparison singed and unsigned values
2) redundent includes
3) wrong constructor :-part field initilization
4) unused not-/*name*/-guarded args in template/virtual functions that not required like args.
5) explicitly list not implemented achievement types.

Also bugs fixed:
1) Drop wrong phase mask 0 check in WorldObject::InSamePhase.
2) ArenaTeamMember::ModifyPersonalRating incorrect work with move points in negative with infinity values in result.
3) ArenaTeam::SaveToDB code send uint64 value to string with arg format %u.
2009-02-24 01:54:53 +03:00
VladimirMangos
b052777f71 Implemented limit category check for item/gem at equip or gem inserting. 2009-02-14 12:17:04 +03:00
freghar
f04ec2b98b [7272] Trailing whitespace cleaning
The "please use git diff --check before commit" thing.

Signed-off-by: freghar <compmancz@gmail.com>
2009-02-12 15:14:40 +01:00
zhenya
c5f20ff9a9 [7248] Check battlemaster_entry data at loading. Code cleanups.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-08 04:22:46 +03:00
VladimirMangos
fdd8176d74 [7227] Implement prismatic sockets. Related code cleanups.
Big thanks to TOM_RUS for help in reseach!
2009-02-04 02:09:46 +03:00
VladimirMangos
ed14e59de4 Fixed typo in log output and misc code cleanups. 2009-01-16 18:11:58 +03:00
VladimirMangos
c0824b35c6 Fix item Unk0 field type as expected signed and related log output.
Also restore item class check at server loading but not subclass check. Problems only with subclass check case.
2009-01-15 03:08:25 +03:00
VladimirMangos
c7a5537bac [7087] Use signed type as expected for item material field. This also fix -1 value output for it.
Also disable Class/Subclass item_template check by dbc data for avoid unexpected log spam (dbc have some wrong values for this fields).
2009-01-15 00:12:48 +03:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
VladimirMangos
ee505ec9da [7015] Implement support -1 in item_template.stackable and item_template.maxcount fields.
Also disable incorrect used vanity pets/currences/quest items special slotes. All items in its will be send by mail to characters at re-login.
Fixed code for item stacks operations with size > 255.
2009-01-03 19:19:53 +03:00
tomrus88
d4ab3ca463 Merge branch 'master' into 303 2008-11-04 18:28:39 +03:00
VladimirMangos
3e43600c3b Correct check for ACE_BIG_ENDIAN. Warning fixed and code cleanups. 2008-11-03 23:59:06 +03:00
VladimirMangos
e4a2d43a47 Better check client inventory pos data received in some client packets to skip invalid cases. 2008-11-03 14:05:12 +03:00
VladimirMangos
d54e53c709 Better check client inventory pos data received in some client packets to skip invalid cases. 2008-11-01 21:18:36 +03:00
arrai
deccb566ae Further work on the achievement system
Implemented ACHIEVEMENT_CRITERIA_TYPE_BUY_BANK_SLOT
Fixed SMSG_CRITERIA_UPDATE structure
Implemented parts of ACHIEVEMENT_CRITERIA_TYPE_REACH_LEVEL - there are still some unknown additional conditions for this criteria type
Fixed sAchievementStore lookup errors caused by an invalid DBCfmt
2008-10-28 00:06:52 +01:00
tomrus88
4bf3c3b488 Added StatsCount field to item_template 2008-10-27 01:03:11 +03:00
tomrus88
579fc917bb Updated item stuff 2008-10-26 10:18:58 +03:00
TheLuda
800ee76535 Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/ 2008-10-14 00:29:20 +02:00