Commit graph

177 commits

Author SHA1 Message Date
VladimirMangos
09b03b470e [10402] Use ObjectGuid in packets and fix some uint32 guids cases. 2010-08-23 12:37:11 +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
40f70138da [10364] Restore build with gcc and cleanup includes a bit. 2010-08-17 19:42:20 +02:00
VladimirMangos
5f44c4da21 [10363] More wide use ObjectGuid in way remove MAKE_NEW_GUID uses.
Also
* Fixed some amount wrong uses low guids as full player guids.
* Add private without body ObjectGuid(uint32 const&) for catch wrong assigns low guids to ObjectGuid.
  In some cases need assign "0" guid, then use ObjectGuid() instead.
* Fixed .pdump commands work.
2010-08-17 08:22:28 +04:00
MaS0n
29ab336b27 [10318] Gender field in SMSG_WHO packet.
Also fix warning in class declaration forward

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-08-04 15:45:05 +04:00
VladimirMangos
685edfe7e2 [10314] Implement commands for work with areatriggers in game.
* all teleport commands support new areatrigger and areatriger-target shiftlinks
* .go trigger now let select areatrigger or areatrigger target as teleport point
* New commands:
  .trigger        - show detail info about areatrigger including all requirements
                    for teleport with shift-links to items/keys/quest
  .trigger active - show all currently activated by character areatriggers
  .trigger near   - show near areatriggers

* .lookup item now show [usable] postfix if item can be used/equipped by selected character.
2010-08-04 00:58:01 +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
ce553c9997 Merge remote branch 'origin/master' into 335 2010-06-28 16:58:45 +04:00
Grinder
f244e68c59 [10102] Rename loginDatabase for consistence with other global db object names
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-24 02:55:26 +04:00
tomrus88
af0402789e Merge remote branch 'origin/master' into 335 2010-06-21 13:52:09 +04:00
VladimirMangos
33d73f2efc [10072] More methods for access/modify ObjectGuid update fields.
* Some related cleanups.
* Also drop unused Player::SetFarSightGUID decalration as reported by LordJZ.
2010-06-17 06:00:16 +04:00
tomrus88
a93b7936f5 Fix. 2010-06-16 17:01:36 +04:00
hunuza
68abd76c97 [9844] Fix some whitespace errors.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-05-07 12:25:12 +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
b502d01a08 Fixed console spam. 2010-03-28 15:00:11 +04:00
tomrus88
292f6189ea Merge remote branch 'origin/master' into 330 2010-03-24 08:33:12 +03:00
VladimirMangos
db51c29235 [9596] Use area trigger zone check for inn leave case.
This is still have false cases but will more correct for specific area triggers.
Also let cleanup code and store less data for Player.
2010-03-17 01:42:22 +03:00
tomrus88
c2a3062f4e Fixed quests. 2010-03-13 20:34:23 +03:00
tomrus88
26070c571f Merge remote branch 'origin/master' into 330 2010-03-13 17:52:17 +03:00
VladimirMangos
ab7840a591 [9580] Add ObjectGuid const& Object::GetObjectGuid() and restore build. 2010-03-13 17:35:47 +03:00
tomrus88
e73c5d3b79 Merge remote branch 'origin/master' into 330
Conflicts:
	src/game/Unit.cpp
2010-03-10 20:24:28 +03:00
tomrus88
393d46f9f6 Updated to latest PTR build. 2010-03-10 20:21:18 +03:00
VladimirMangos
c8fd454a79 [9551] Add and use PackedGuid wrapper.
Also
* use more wide bytebuff << >> operators for objects
* use at read packet faisl alsways exception way instead some time used bool results.
2010-03-08 20:23:16 +03:00
VladimirMangos
6487c24f29 [9545] Rename ObjectDefines.h -> ObjectGuid.h
Also move unrelated generic defines to Common.h
2010-03-07 20:05:32 +03:00
tomrus88
9626d3333e [9515] Fix a possible exploit in CMSG_HEARTH_AND_RESURRECT
Signed-off-by: Lightguard <Lightguard@tauri.hu>
2010-03-04 09:46:18 +01:00
Blaymoira
6af247d34f [9514] Implement opcode CMSG_HEARTH_AND_RESURRECT
Signed-off-by: Lightguard <Lightguard@tauri.hu>
2010-03-04 08:55:09 +01:00
AlexDereka
ebfb0f9835 [9389] Cleanup config data. Use proper names and expected types. 2010-02-15 15:29:06 +03:00
AlexDereka
ccfd42bf3e [9381] Fixed some compile warnings. 2010-02-14 18:16:07 +03:00
VladimirMangos
268bb3221b [9362] Make specs work at least for action bars
* Propertly add/remove required for specs work spells at 63624/63651.
* Copy current spec action bars to new spec at specs count increase, and delete action bars data at spec count decrease.
* Avoid undexpected action button data test for not active spec at loading/copy, but test action buttons data at spec activation.
* Reset active spec to default if active spec removed.
* Remove talent reset at spec switch that useless at this moment.
  Also note that for future case this also can be not correct and batter unlearn/learn only talents that different in specs.

After this changes specs must fully work in action bar part without unexpected another effects.
2010-02-12 09:29:50 +03:00
hunuza
acf507fd5a [9349] Add posssibility for one action button set per talent spec. 2010-02-10 18:00:30 +01:00
AlexDereka
4338c9105d [9324] Fix some gcc warnings 2010-02-08 02:27:34 +03:00
tomrus88
db547a008a Get rid of monster movement flags, since it's really spline flags.
Thanks to Ralek for research.
2010-02-07 15:03:36 +03:00
tomrus88
b85417df73 Movement packets cleanup. 2010-02-01 17:03:04 +03:00
VladimirMangos
cc062f16ac [9187] Fixed problem with non-attackable pes/totems at arenas
... and other FFA areas. Problem is result chnages in related flags work after old 3.x switch.

* Added high-level functions for FFAPvP state set for unit
* Apply FFA PvP to all controlled units also at set, and at summon/load
2010-01-16 05:41:42 +03:00
VladimirMangos
e15f548bed Merge branch 'master' into 330 2010-01-08 16:03:27 +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
DasBlub
ebb063beb9 [9107] Fix most of the gcc warnings
* use UI64FMTD instead of "%u" for uint64 output
* on most *NIX systems, I64FMT is "%016lX" and not "%016llX"
* also fix typo: renamed GridMap::loadHeihgtData to GridMap::loadHeightData

Note: there are still many warnings from the 3rd party libraries g3dlite and ACE. Those warnings won't be fixed with that commit.
Also, a few warnings from MaNGOS are left, they'll be fixed later.

Signed-off-by: XTZGZoReX <xtzgzorex@gmail.com>
2010-01-03 15:30:22 +01:00
tomrus88
eba214eb8a Merge remote branch 'origin/master' into 330 2009-12-17 16:13:37 +03:00
balrok
7c4acf31e2 [9012] fix crash when achievement is completed and player isn't in world
also don't divide money loot for players who are not inside the
same map..
and player shouldn't be able to reclaim his corpse if it isn't in same map

and some other related cleanups
2009-12-17 14:02:48 +01:00
tomrus88
c745c5072f Merge remote branch 'origin/master' into 330 2009-12-16 02:45:05 +03:00
VladimirMangos
8211bcd218 Fixed unreaded packet spam for CMSG_MOVE_FEATHER_FALL_ACK 2009-12-15 18:41:58 +03:00
tomrus88
90ee507cf7 Merge remote branch 'origin/master' into 330 2009-11-30 01:29:59 +03:00
balrok
56d694b5fb [8846] corrections for my last commit
thx to vladimir and apoc :)
2009-11-20 13:25:54 +01:00
balrok
1d362eace4 [8845] fixed some gcc warnings 2009-11-20 12:57:19 +01:00
tomrus88
72b9dc318e Merge remote branch 'origin/master' into 330 2009-11-19 16:22:58 +03:00
VladimirMangos
f66f0a0914 [8832] Fixed typo in difficulty name 2009-11-19 03:50:10 +03:00
VladimirMangos
fe1fae46ee [8830] Restore build at *nix. Make MAKE_PAIR* users includes explicit.
Comment for recently added field also.
2009-11-18 23:57:20 +03:00
balrok
7a2764e0fe [8829] some more places where we call redundant SaveToDB
i also added now my assert with which i've found them..
maybe someone want's to look at other cases too :)
2009-11-18 19:13:03 +01:00
tomrus88
fe55f76a26 Merge remote branch 'origin/master' into 330 2009-11-16 02:01:51 +03:00
balrok
6199396b69 [8821] removed some redundant player->SaveToDB calls
SaveToDB will already be called at "SpawnCorpseBones"
so no need to do this twice
2009-11-15 20:08:57 +01:00