Wyk3d
5ba3796480
[6920] Cleaned up DatabaseImpl and added support for async queries with 3 parameters passed to the callback.
2008-12-19 15:55:38 +02:00
ApoC
a5331ab517
[6910] Implemented rewritten arenas. Original author w12x@getmangos.com
...
Many thanks also to:
Balrok@github.com for long time updating.
Triply@github.com for great work in rewriting process.
All who I forget to name.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-12-16 00:17:24 +01:00
VladimirMangos
35f54d365d
Replace hardcoded client(100) and server side (255) level limtation values by defines.
...
(cherry picked from commit 389a1784e288f11587067d3a6d4b70cce9214cb9)
Conflicts:
src/game/Player.cpp
src/game/World.cpp
src/shared/Database/DBCStructure.h
2008-12-14 23:52:32 +03:00
VladimirMangos
5113af643e
Some fields comments for ChrClass and ChrRace. Also optimize code (set MAX_RACES to max_player_race+1).
...
Note: MAX_* moved out of enum. This is not nice include value _not_ belong to enum values into enum.
Maybe in C this not make sense (enum range = int anyway) but in C++ enum values checked at assigning/etc.
(cherry picked from commit f157c4e3d5e18878c7ab0dae383acb7704c3ed90)
2008-12-14 23:27:57 +03:00
hunuza
0f12997ef1
[6899] Pass const reference instead of value for some strings in some functions.
...
Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-12 14:17:37 +01:00
VladimirMangos
8dfbcf7ee6
[6861] Add and use function for more fast way to get areflag by area id.
2008-11-30 05:46:56 +03:00
VladimirMangos
9fc7dd9ead
[6853] [2008_11_27_01_mangos_playercreateinfo_item.sql] Use DBC data for creating initial character items.
...
Thanks to WCell team for DBC structure research.
`playercreateinfo_item` content removed from mangos.sql and table can be used now only for custom additional initial items.
2008-11-28 02:20:02 +03:00
Wyk3d
766654c85d
[6828] Added script name indexing for creature, gameobject, item, areatrigger and instance scripts.
...
* loaded all distinct script names into one vector at server startup
* added custom loaders to convert the script names to indices
* converted all the script lookup functions to use the index instead of the name
2008-11-16 03:20:16 +02:00
Wyk3d
074bd3a08f
[6827] Added an interface for defining custom SQLStorage loaders.
2008-11-16 01:02:13 +02:00
VladimirMangos
755717e8ac
[6813] Allow have team dependent graveyards at entrance map for instances.
...
Entrance map graveyards selected by same way as local (by distance from entrance)
Until DB support will work in old way base at current DB data.
2008-11-09 17:02:58 +03:00
VladimirMangos
5222f49820
Use (if available) TR1 unordered_map instead hash_map at Unix/Linux (in GCC 4.0.0 and later) and Windows (VC90 and later)
2008-11-08 11:44:13 +03:00
VladimirMangos
4476d483d4
Fixed comment text and code indentifiers spelling.
...
GetFieldNames part provided by Paradox.
2008-11-06 19:22:23 +03:00
Wyk3d
c8bd17f67b
Added two parameter versions of the AsyncQuery function
2008-11-02 22:21:02 +02:00
VladimirMangos
8563b88859
Fixed some format arg type/value pairs. Other warnings.
2008-11-01 23:53:35 +03:00
ApoC
4658b2b38e
Fixed ticket reading when using PGSQL
...
Optimized ticket deleting by its position
Signed-off-by: ApoC <apoc@nymfe.net>
2008-10-26 12:26:22 +01:00
TheLuda
899d7dec74
Applied new coding standard, see http://github.com/mangos/mangos/wikis/codingstandards for more.
2008-10-15 18:25:10 +02:00
TheLuda
800ee76535
Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/
2008-10-14 00:29:20 +02:00