XTZGZoReX
0734adb746
[8789] Rename several singleton macros to use more consistent names.
...
* objmgr -> sObjectMgr
* spellmgr -> sSpellMgr
* WaypointMgr -> sWaypointMgr
* poolhandler -> sPoolMgr
* objaccessor -> sObjectAccessor
* mapmgr -> sMapMgr
* sInstanceSaveManager -> sInstanceSaveMgr
* ticketmgr -> sTicketMgr
* CreatureEAI_Mgr -> sEventAIMgr
* auctionmgr -> sAuctionMgr
* achievementmgr -> sAchievementMgr
2009-11-08 12:11:34 +01:00
XTZGZoReX
1f23884757
Don't use singleton to access static functions.
...
* This affects especially ObjectMgr functions:
- GetCreatureInfo
- GetGameObjectInfo
- GetInstanceTemplate
These are in fact static functions.
2009-11-08 03:54:27 +01:00
VladimirMangos
f35be9519c
[8754] Some guld back related packets data correctness checks
...
* Move when possible checks from deep code to packer/DB read level.
* Check real existed guild bank tabs amount instead just max possible amount.
* Check guild bank loaded state for packets expected to be called only after
guild bank data loadin by another packet.
Thanks to elecyb and NetSky for original fix versions.
2009-10-30 05:50:06 +03:00
leak
455a053b3d
[8721] Allow guildmaster to withdraw money before first bank tab is purchased.
...
Attached sql file needs to be run to repair existing structure.
Signed-off-by: unknown <Jakub@.(none)>
2009-10-24 09:25:44 +02:00
Triply
a0079ed59d
[8585] Fixed problem with guild_bank_rights not removed when guild master deleted rank. Problem reported by leak, Thx.
...
Signed-off-by: Triply <triply@getmangos.com>
2009-10-04 18:22:30 +02:00
Triply
8246a8c310
[8565] Fixed crash added in [8560]. Thx to KAPATEJIb.
...
Signed-off-by: Triply <triply@getmangos.com>
2009-09-29 19:13:57 +02:00
Triply
0356924cf9
[8560] Optimized guild and arena team loading at startup.
...
Signed-off-by: Triply <triply@getmangos.com>
2009-09-29 15:41:17 +02:00
VladimirMangos
cfacd7e696
[8480] Provided real-time update for guidl ranks rights.
...
Specially for guild bank tab access rights (including currently open tab case!)
Send roster broadcast for all online guild memebers at any rank edit and guild bank tab buy.
2009-09-07 05:41:31 +04:00
Triply
78420246bd
[8479] Fixed showing guild member's level and guild member's last online time.
...
Thx to Apoc for reporting bug.
Signed-off-by: Triply <triply@getmangos.com>
2009-09-06 18:47:30 +02:00
Triply
d24fd20cc3
[8466] Applied mangos coding style for Guild code.
...
Signed-off-by: Triply <triply@getmangos.com>
2009-09-04 15:40:01 +02:00
Wowka321
bb30afb6f3
[8464] Fixed guild_rank name and rights updates broken in recent guild loading optimization. Also fixed guild_bank_rights.
...
Patch provided by Wowka321. THX.
Signed-off-by: Triply <triply@getmangos.com>
2009-09-04 13:16:22 +02:00
Triply
664112a738
[8455] Do not disband guild, if guild ranks are not defined for that guild, removed obsolete comment.
...
Do not allow to delete guild rank, when there are only 5 or less ranks defined.
Signed-off-by: Triply <triply@getmangos.com>
2009-09-02 20:58:05 +02:00
VladimirMangos
747a53cb67
[8447] Small code cleanups in guild loading.
2009-09-01 15:56:09 +04:00
Triply
8aef9ce5e9
[8410] Fixed guild bank loading broken by previous commit.
...
Signed-off-by: Triply <triply@getmangos.com>
2009-08-23 18:52:52 +02:00
Triply
efa24ced49
[8409] Fixed guild creation date loading, and added another guild loading optimization - last one.
...
Signed-off-by: Triply <triply@getmangos.com>
2009-08-23 18:13:09 +02:00
Triply
512cb786ee
[8408] Optimized guild_member loading during startup. Changed rank ids in guild_rank table.
...
First start of mangos will take more time then usually, because of guild_rank change. If you want to speed first start up, execute command:
UPDATE guild_rank SET rid = rid - 1;
Signed-off-by: Triply <triply@getmangos.com>
2009-08-23 09:22:34 +02:00
VladimirMangos
5ceb0919e7
[8407] Extract from guild bank handler functions for 3 cases and move code to Guild class.
...
This mostly just move code and caller updates to use it from new place.
More code chnages possible later.
2009-08-23 08:33:21 +04:00
Triply
38fa6b241c
[8402] Optimalized guild_eventlog and guild_bank_eventlog loading from database.
...
Added config options to set count of eventlog records stored in DB.
Attached SQL files will DROP existing and create new tables. Make sure you create backup (if you need old data).
Renamed few variables in Guild class.
Signed-off-by: Triply <triply@getmangos.com>
2009-08-21 09:42:21 +02:00
VladimirMangos
a6413516f9
[8315] Fixed memory leaks (mostly at server shutdown) and code cleanups.
...
* Fixed leak in BattleGround::m_PlayerScores at BattleGround::Reset,
add and use BattleGroundScoreMap typedef
* Delete AreaTeam objects stored in global map at shutdown
* Delete Corpse objects stored in global map at shutdown
* Store guild bank log entries as objectes instead pointers in log event lists
2009-08-05 14:27:30 +04:00
Gendalph
ae61c1eec0
[8277] Add new line at the end of some .cpp to make gcc happy
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-29 18:34:37 +04:00
VladimirMangos
edf9cefc72
Small code cleanup in Guild::Roster
2009-07-18 23:47:22 +04:00
Win32
03926619d9
[8151] Fixed some format warnings and typos.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
SOme changes rewrited with using [8150]
2009-07-09 01:09:12 +04:00
hunuza
8a32a19bad
[8072] First step to get rid of data blob.
...
Adds new fields gender, level, xp, money, playerBytes, playerBytes2 and playerFlags to characters table.
The update will not work if your database contains characters with an old data field (not fitting to the actual client version).
It's recommended to backup your character database before applying this patch.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-06-23 17:51:48 +02:00
VladimirMangos
2a27a44e2a
[7918] Improve portability in work with uint64 string format specifiers and in code literals.
...
* Replace platform seelction MaNGOS code for select format descriptor for uint64 by using ACE define.
I64FMTD renamed to UI64FMTD for more clear name.
* Add new define UI64LIT (base at ACE seelction) for build portables uint64 literals.
Please always use UI64LIT(0x00001) instead less portable 0x00001LL
2009-05-30 22:44:20 +04:00
zhenya
8144f30199
[7730] Some optimizantion and code style.
...
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-04-29 01:05:21 +04:00
VladimirMangos
f4482f247f
[7532] Avoid warnings at use size_t with printf fromat strings.
2009-03-24 06:03:22 +03:00
VladimirMangos
eac584eb89
[7422] Allow localization base at guildmaster locale default guild rank names at guild creating.
2009-03-09 11:41:22 +03:00
balrok
54f2dbefa0
[7403] much more unneeded includes removed
...
now i extended my script:
NAME="Chat"; ack -c $NAME | ack ":1$" | sed 's/:1//' | xargs /usr/bin/ack-grep -l "include \""$NAME".h\"" | xargs /bin/sed -i '/include "'$NAME'.h"/d'
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-08 02:22:17 +03:00
zhenya
cdfee0fdfc
[7282] Store guilds in map for fast search by id, some other guild/arenateam related cleanups.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-15 14:03:29 +03:00
VladimirMangos
d9c74376b3
[7277] Correctly show guild bank tab info text for author and members not only after login but also after change.
2009-02-14 14:10:49 +03:00
freghar
11ed0e99a8
[7146] Trailing whitespace code cleanup
...
Signed-off-by: freghar <compmancz@gmail.com>
2009-01-22 18:10:16 +01:00
arrai
c6f48843ad
[7017] Updated copyright notice for new year
2009-01-03 18:09:51 +01:00
hunuza
70c7dda068
[6959] Merge some queries on item load.
...
Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-28 00:38:38 +01:00
balrok
d4a69e4789
[6924] Faster guild-loading.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-22 12:47:35 +03:00
VladimirMangos
c798318b7b
Replace hardcoded client(100) and server side (255) level limtation values by defines.
2008-12-14 22:18:52 +03:00
tomrus88
5d4d7292b9
Merge branch 'master' into 303
...
Conflicts:
src/game/Player.h
2008-12-12 18:14:49 +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
hunuza
a94b918ffc
[6883] Avoid DB access on deleting guild member.
2008-12-09 00:28:31 +03:00
hunuza
66c98859cf
[6883] Avoid DB access on deleting guild member.
2008-12-07 15:41:46 +01:00
tomrus88
518d7f6297
Merge branch 'master' into 303
2008-12-01 08:21:10 +03:00
ApoC
571221148a
[6867] Optimized working with DB in Guild code. No need of parsing/saving players data fields anymore.
...
Signed-off-by: ApoC <apoc@nymfe.net>
2008-11-30 17:31:44 +01:00
tomrus88
1c28b1ad50
Merge branch 'master' into 303
2008-11-30 16:17:02 +03:00
hunuza
1ad9adc467
[6865] Improve db access in guild and arena team code.
...
Note: Using SetUInt32ValueInDB() is still not safe, because it's executed async.
Three possible solutions:
1) remove data field
2) get rid of SetUInt32ValueInDB() calls (probably not possible)
3) make SaveValuesArrayInDB() executed directly
2008-11-30 13:19:49 +01:00
tomrus88
78ec66babc
Merge branch 'master' into 303
...
Conflicts:
contrib/extractor/System.cpp
contrib/extractor/ad.exe
src/game/WorldSocket.cpp
2008-11-06 15:50:47 +03:00
hunuza
9d8a7aea79
Reduce number of DB queries in guild related code.
2008-11-05 18:24:17 +01:00
hunuza
90828fa699
Cache highest arena team/guild ids. Some code clean up.
2008-11-05 16:58:57 +01:00
VladimirMangos
88b1974df6
Fixed warnings, unused code and typos.
...
Including fix _SCallback for 3 params, triggred mode correct call for .cast back and .cast target.
Remove outdated code for support old 19421 (and ranks) implementation in client data.
2008-11-05 05:06:35 +03:00
tomrus88
c2f65a01c1
Updated social stuff
2008-10-26 10:24:38 +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