Commit graph

59 commits

Author SHA1 Message Date
Antz
9d20fe2b32 Initial project location adjustment 2020-02-17 09:22:43 +00:00
Antz
f1c9e0f94b [Sync] Project header sync 2020-02-17 09:22:26 +00:00
bels
9e61760761 - Should limit the change to just clang since gcc does not have a problem building Mangos on FreeBSD 9 and lower with the current code 2020-02-17 09:22:13 +00:00
bels
3bc66c3be1 - Fixes the hash definition in ObjectGuid.h. This looks like it allows mangos to compile on FreeBSD 10 with clang 2020-02-17 09:22:12 +00:00
Antz
1997c1e903 Rebase resync 2020-02-17 09:19:44 +00:00
billy1arm
ef445ea523 [12632] Revert previous commit (see Notes) 2020-02-17 00:54:15 +00:00
Schmoozerd
a27787851c [c12537] Update Authorship information
(based on commit [12388] - 037f217)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
2020-02-16 21:27:46 +00:00
Schmoozerd
a05738717a [c12536] Happy New Year 2013
Update authorship information and prepare for easier ways next year

Signed-off-by: Schmoozerd <schmoozerd@cmangos>

(based on commit [12325] - b7dbcda)
2020-02-16 21:25:01 +00:00
Yaki Khadafi
5fe1d9806f [12177] Fix ObjectGuid::GetEntry
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 20:41:55 +00:00
Yaki Khadafi
372e8e04bf [12173] Some battleground changes
- bg list works
- placeholders for pvp rewards and rated bg stats packets
- other bg opcode changes

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 20:41:51 +00:00
Yaki Khadafi
936404c101 Update ObjectGuid to cata, remove ref in ByteBuffer::WriteGuid*
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>

Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 02:53:50 +00:00
Yaki Khadafi
53b2e576d1 Make back use of define
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 02:25:30 +00:00
Yaki Khadafi
6b5887cc8c Get rid of NUM_GUID_BYTES thx LordJZ
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 02:25:29 +00:00
Yaki Khadafi
19830bc3f6 typo
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 02:25:28 +00:00
Yaki Khadafi
74d6c959db Implement new guid write/read methods
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 02:25:28 +00:00
Schmoozerd
835d1c7479 [12069] Cleanup comment style 2012-07-22 14:39:31 +02:00
Schmoozerd
e32b9953a1 Cleanup Operator padding 2012-07-20 17:38:23 +02:00
Schmoozerd
94795f2bff Various Cleanups (game N-O) 2012-07-19 21:51:08 +02:00
Schmoozerd
0e0a765312 [12026] Replace std containers of ObjectGuids with some predefined types
Based on patch by stfx

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-07-03 18:47: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
VladimirMangos
6945d86e67 [11630] Possible fixed recent problems with build.
Removed support hash_value look like not used directly in MaNGOS
by testing diff Visual Studio versions and start create rpoblem
after recent changes.
2011-06-14 14:16:22 +04:00
zergtmn
d8d1988489 [11628] Add explicit to ObjectGuid(uint32 const&)
No reason have implicit wrong uses catch version when main version
of constrictor have `explicit`. This also avoid unexpected selection
catch-version with less readable error output at implicit uses.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-12 22:03:06 +04:00
zergtmn
2006b7bf07 [11624] Use 12 bits for high guids 2011-06-11 23:30:50 +06:00
VladimirMangos
de0fc143f6 [11619] Remove depricated GetGUID and forbit implicit uint64->ObjectGuid casts 2011-06-10 17:00:08 +04:00
zergtmn
5cae1c2211 [11539] Implement group guids with HIGHGUID_GROUP 2011-05-25 19:55:35 +06:00
VladimirMangos
55cc1ea37f [11491] Step back to implicit ObjectGuid(uint64 const& guid) in wait code users updating.
Must be reverted with drop GetGUID() when code ready.
2011-05-15 23:37:01 +04:00
VladimirMangos
249fb836ca [11490] Alow implicit cast ObjectGuid->uint64 and only explicit uint64->ObjectGuid
Now safe allow this casts in like way after completed convertion to ObjectGuid use.
Also simplify code in result allowed auto cast to uint64.

Please _not_ add new uint64 storages (local and in structures) for guid values.
2011-05-15 22:04:57 +04:00
zergtmn
639cac83a3 [11488] Add ObjectGuid::operator !() for use as shorter form of IsEmpty() 2011-05-14 22:08:25 +06:00
Ambal
e84d8fe335 [11333] Reserve 9 bytes for PackedGuid buffer instead of 4096 to save RAM.
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-04-12 00:57:14 +03:00
rsa
cd32dd9bfc [11330] Use ObjectGuid to store Totem guids instead of uint64 and fix related rare crash.
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-04-11 22:45:32 +03:00
VladimirMangos
57132ab503 [11178] Catch use uint64 guid as low guid in ObjectGuid. 2011-02-17 02:55:52 +03:00
VladimirMangos
bf0ecf6e71 [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03:00
zergtmn
2f4e7a9377 [10901] Allow vehicles to have gossip menu
In addition rename IsGameobject -> IsGameObject.
2010-12-21 15:14:52 +05: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
c2096380cf [10752] Convert to objetguids map scripts and finally drop IS_PLAYER_GUID. 2010-11-20 02:38:56 +03:00
Tasssadar
d53fe93e9d [10640] Implement instance guids with proper HIGHGUID_INSTANCE use.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-10-24 14:54:11 +04:00
VladimirMangos
4598224659 [10542] Fixed ObjectGuid::IsUnit
Also some better string format for pet guid case.

Thanks to zergtmn for find problem.
2010-09-26 18:33:57 +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
CipherCOM
6600fc842f [10369] Implement UNORDERED_SET support.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also added compatibility code for old Visual Studio versions
for non standard way hash calculation for hash_set.

Thanks to Lynx3D for help in Unix side testing.
2010-08-18 04:37:08 +04:00
VladimirMangos
fbf4c5b3b4 [10366] Add portable way for hash specialization adding.
Use it for ObjectGuid hash specialization
2010-08-18 01:13:42 +04: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
VladimirMangos
696a4b6db0 [9918] Fixed player's tapped creature loot access by group in diff cases
* If player tap creature in group and leave then group will have access to creature loot if not disbanded
* If player tap creature and after join to group then creature loot will accesable only by player
* Also RewardPlayerAndGroupAtKill divided to simgle player and group reward versions used for group tap
  and single player tap cases.
2010-05-17 12:56:57 +04:00
NoFantasy
5a72466935 [9890] Add TYPEMASK_WORLDOBJECT to enum TypeMask
Check typemask and replace a few dynamic_cast with more simple casts.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-13 17:51:49 +02:00
VladimirMangos
20162b6db4 [9724] Temporary back to 0 player highguid.
This is resolve "none from players see each other" problem.
Please, reapply non-0 player guid only with or after this problem resolve.

Some ObjectGuid use cleanups added while reseach porblem source.
2010-04-11 05:36:05 +04:00
tomrus88
dc1bb13c72 [9721] Updated high guids. Renamed few files. Added some comments. 2010-04-10 16:59:30 +04:00
VladimirMangos
c3e07a443d [9620] Resolve linking problems for script DLLs 2010-03-26 06:54:33 +03:00
VladimirMangos
b658b25ff8 [9618] More use ObjectGuid in spell/etc code 2010-03-25 13:59:46 +03:00
zhenya
0bf2d2b71a [9614] Objects HIGHGUID_MO_TRANSPORT not have entry part in guid.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-03-24 22:57:48 +03:00
VladimirMangos
ab7840a591 [9580] Add ObjectGuid const& Object::GetObjectGuid() and restore build. 2010-03-13 17:35:47 +03:00
VladimirMangos
2bf75e7a10 111 2010-03-13 16:12:13 +03:00