Commit graph

4176 commits

Author SHA1 Message Date
VladimirMangos
80712b928a [10825] Move specific SQLStorage defines to game dir
This let have in shared dir only generic declarations of class SQLStorage
Not game specific details.
2010-12-05 03:29:11 +03:00
TOM_RUS
c7a4f74676 [10824] Fixed copy-paste typo in prev. commit. 2010-12-04 11:41:47 +03:00
VladimirMangos
b967848e42 [10823] Clear way access/set UNIT_FIELD_BYTES_*/PLAYER_BYTES* byte fields.
Fix some bugs when all uint32 field modified instead byte parts.
In some cases added byte way set/get but code line itself need additinal reserch/fix
for use correctness in line pos.
2010-12-04 11:15:19 +03:00
Vinolentus
9e071e4483 [10822] Fixed "unsigned is never < 0" warning.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-04 03:19:11 +03:00
zerg
5f099d5fc0 [10821] Restore anti-cheating check work at buy item
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-04 02:07:59 +03:00
VladimirMangos
534d43daa1 [10820] Speedup and cleanup quest counters update code.
* Always use QuestStatus data for current counters set
  This let be sure that that we not have non sync values in client view and server state.
* Remove some access functions for quest update fields that expected to be only updated/set.
2010-12-03 06:09:00 +03:00
SilverIce
d560503a03 [10819] Fixed creature's speed recalculation, forgotten DB speed mods are used now
Also properly update speeds at creature entry change(in case there are aura speed bonuses), thanks to Vladimir for pointing
2010-12-03 04:11:52 +02:00
NoFantasy
49881d4215 [10818] Add dummy effect of spell 47170
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-02 15:26:39 +01:00
Feanordev
c8abfa4afa [10817] Add explicit include for ObjectGuid.h in AchievementMgr.h.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-02 11:02:08 +03:00
VladimirMangos
7e7e1cb008 [10816] Remove GUID_LOPART/GUID_HIPART
* Now no correct way access to internal structure of guid in uint64 form.
  For this always must be used ObjectGuid form.
* Guids in uint64 form still used in some cases (many) but it uses as-is
  Main source of uint64 guids is non-converted opcode handlers.
* Also ofc, possible cases wrong created uint64 guids by assign uint32 to uint64.
  For catch all cases need finish convertion to ObjectGuid all non-converted yet code.
2010-12-02 09:02:19 +03:00
VladimirMangos
a8a7f3c796 [10815] Use in social lists API ObjectGuid form.
0 GUID_LOPART uses in code. :)
2010-12-02 08:32:46 +03:00
VladimirMangos
3c0b80dada [10814] Convert to ObjectGuid aura cast item guid access function. 2010-12-02 08:12:15 +03:00
VladimirMangos
957c9331a9 [10813] Use ObjectGuid for aura holder cast item guid.
Still exist 7 GUID_LOPART uses in code.
2010-12-02 08:02:22 +03:00
VladimirMangos
0a964e43a9 [10812] Use ObjectGuid for corpse owner guid.
Still exist 9 GUID_LOPART uses in code.
2010-12-02 07:28:17 +03:00
VladimirMangos
b305f203b9 [10811] Use ObjectGuids in chat commands.
Still exist 15 GUID_LOPART uses in code.
2010-12-02 07:09:11 +03:00
VladimirMangos
c6d3c5e0d6 [10810] More ObjectGuids specially in petition code.
Some uint64<->uin32 bugs fixed at read guids from DB in petition code.

Still exist 29 GUID_LOPART uses in code.
2010-12-02 05:17:00 +03:00
SeTM
1fbc09e1fd [10809] Remove diplicate World::GetQueueSize and rename functions to consistence naming
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-02 02:38:44 +03:00
VladimirMangos
7657d4faf1 [10808] Small cleanup and optimization in transport current point update. 2010-12-02 02:15:50 +03:00
VladimirMangos
2277b24207 [10807] Typo fix and memory layout optimization. 2010-12-02 01:31:11 +03:00
VladimirMangos
fc35cf0d3b [10806] Fixed typo in m_PrematureCountDownTimer initila value set.
Just fo note: in fact initial value assign not used because
m_PrematureCountDownTimer always init and used only in case
m_PrematureCountDonw == true
2010-12-02 00:54:47 +03:00
SeTM
29f7f05414 [10805] Remove code duplication in visibility distance check.
at_same_transport already include player checks at assign and
it move to common if make 3 distance cases exactly same.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-02 00:50:02 +03:00
gc
47bdcd1595 [10804] Restore build at *nix.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-02 00:29:51 +03:00
VladimirMangos
090bdf1dc7 [10803] Use ObjectGuid in player loading code. 2010-12-01 15:27:41 +03:00
VladimirMangos
938622bedc [10802] Use ObjectGuid in Mail code.
Some catched bugs fixed in mixed uint32/guid values using cases.
2010-12-01 15:11:08 +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
ce7b98c45e [10799] Add GetGuidStr() short call for GetObjectGuid().GetString() and use it. 2010-12-01 09:56:13 +03:00
VladimirMangos
2fa4cf41a7 [10798] Some more warning fixes related to BattleGroundTeamIndex/BattleGroundAVTeamIndex. 2010-12-01 02:28:01 +03:00
NoFantasy
afe50cd549 [10797] Check for valid sheath state in creature addon at startup.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-30 09:42:51 +01:00
VladimirMangos
a2909f2674 [10796] Use regular map case in all trigger checks. 2010-11-30 11:12:46 +03:00
VladimirMangos
74d178633e [10795] I must less press random buttons before push in monkey mode. 2010-11-30 04:43:01 +03:00
VladimirMangos
7059888524 [10794] Player.h expected DBCStores.h including.
So make it direct.
2010-11-30 03:52:15 +03:00
VladimirMangos
44218a4fe7 [10793] Fixed build problems for vc90 after recent vmaps dir move.
VC80/VC100 not affected by this.
2010-11-29 23:34:47 +03:00
VladimirMangos
abc6dfca98 [10792] Fixed warnings and need in redundent char* casts in database access code. 2010-11-29 00:47:11 +03:00
VladimirMangos
7f34658dd2 [10791] Fixed more warnings with BattleGroundTeamIndex/BattleGroundAVTeamIndex mixed use. 2010-11-29 00:46:57 +03:00
Neo2003
4dd4576581 [10790] Moved vmap code from shared to game project
After this, realmd code does not contain anymore vmap code
Small cleanup in VC100 filter about vmap files

Signed-off-by: Neo2003 <Neo.2003@Hotmail.fr>
2010-11-28 18:43:14 +01:00
VladimirMangos
20cdcd4280 [10789] Allow use old non-builting ACE versions (pre-ACE-5.5.4) at Unix-side.
This fix build error in relamd code in result
nonexistence ACE_OFF_T in old ACE versions.
2010-11-28 03:27:06 +03:00
VladimirMangos
0c8a7c3826 [10788] Replace bytes in single field bytes2 by independent fields for creature_addon. 2010-11-27 23:56:08 +03:00
alien
9460ed0494 [10787] Add explicitly header dependences for Database/QueryResult.h
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-27 22:59:46 +03:00
Lynx3d
28ccd9975d [10786] A bit spell proc housekeeping
* PPM values for enchanting spells 13898, 20029, 20032, 44524, 44576
* Correct cooldown for enchanting spell 59625
* Add procEx and cooldown for item 50198
2010-11-27 00:52:41 +01:00
VladimirMangos
d266db672d [10785] Fixed warnings at comparison BattleGroundTeamIndex and BattleGroundAVTeamIndex
Maybe adding special operator== or != can be more nice way but for small used cases this
not look so need really.
2010-11-26 17:39:31 +03:00
VladimirMangos
21710cf05d [10784] Restrict items with generated loot really to single character only. 2010-11-25 17:00:52 +03:00
VladimirMangos
525836734c [10783] Fixed comment in characters.sql 2010-11-25 17:00:10 +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
c2331f58bc [10781] Use BattleGround(AV)TeamIndex enum types in AV battleground code.
* Added BattleGroundAVTeamIndex enum type for 3-case special team list fo AV.
* Rename BattleGroundTeamId -> BattleGroundTeamIndex for clarify
* Some safe checks added and dropped bogus call RewardReputationToTeam in BattleGroundAV::HandleQuestComplete
  for BattleGroundTeamIndex as faction. Unclear for what it expected used so dropped.
2010-11-24 17:39:03 +03:00
VladimirMangos
26668c067b [10780] Fixed warning in ReputationMgr::SetReputation. 2010-11-24 00:13:16 +03:00
Lynx3d
796cf40f87 [10779] Allow ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL to proc on special attacks too. 2010-11-23 15:38:56 +01:00
NoFantasy
0c85afea79 [10778] Make AI call OwnerKilledUnit() more proper.
Affect any pet that are not being controlled (minipet/guardian/protector) and will also apply to pets owned by another creature.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-23 11:07:07 +01:00
alien
e873ccd289 [10777] Explictly include Threading.h into CliRunnable.h
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-22 12:45:44 +03:00
VladimirMangos
fe5fc994a6 [10776] Not mark reputation_spillover_template empty state as error
Now expected by default data used from dbc fields.
2010-11-22 12:38:58 +03:00