Spp
a12c0aef85
Fix compile ¬¬
...
+ Code Style (for, if, while)
--HG--
branch : trunk
2010-04-24 17:48:52 +02:00
n0n4m3
e3e5ca6227
Drop not needed table 'item_text', add new column 'text' in table 'item_instance'. Original patch by Vladimir.
...
--HG--
branch : trunk
2010-04-14 12:43:42 +04:00
n0n4m3
93f7e2796c
Some fixes to guild/arenateam events. Big thx to TOM_RUS.
...
--HG--
branch : trunk
2010-04-11 11:06:51 +04:00
Spp
46f0674e23
Code Style (game + scripts only):
...
">=" --> " >= " (when needed)
" >=" --> " >="
">= " --> ">= "
"<=" --> " <= " (when needed)
" <=" --> " <="
"<= " --> "<= "
" ==" --> " =="
"== " --> "== "
--HG--
branch : trunk
2010-04-07 23:56:35 +02:00
Spp
2454c290b8
Code Style (game + scripts only):
...
"==" --> " == " (when needed)
--HG--
branch : trunk
2010-04-07 23:25:02 +02:00
Spp
49d05ba9aa
Code style (game + scripts only):
...
"( " --> "("
" )" --> ")"
--HG--
branch : trunk
2010-04-07 22:59:46 +02:00
Spp
d19e127080
Code style (game + scripts only):
...
"if(" --> "if ("
--HG--
branch : trunk
2010-04-07 19:14:10 +02:00
Spp
2e127f7a30
Code style (game + scripts only):
...
"while(" --> "while ("
--HG--
branch : trunk
2010-04-07 19:13:19 +02:00
Spp
182e9a20b1
Code style (game + scripts only):
...
"for(" --> "for ("
--HG--
branch : trunk
2010-04-07 19:12:44 +02:00
Spp
b27ce42704
Code Style: Remove trailing spaces
...
--HG--
branch : trunk
2010-04-07 18:09:10 +02:00
Spp
f490ad5ac2
Code Style: tab to spaces
...
--HG--
branch : trunk
2010-04-07 17:24:07 +02:00
XTZGZoReX
2b55eb2efe
* Fix a typo that broke guild creation times...
...
--HG--
branch : trunk
2010-03-19 18:27:53 +01:00
XTZGZoReX
bb99135e40
* Minor cleanups/comments in regards to SMSG_GUILD_INFO.
...
--HG--
branch : trunk
2010-03-19 17:24:23 +01:00
Machiavelli
a77ba0bf56
Fix SMSG_GUILD_INFO (/guildinfo command)
...
--HG--
branch : trunk
2010-03-19 14:47:08 +01:00
Machiavelli
b0b17e56de
- Overload Item::SetState with player argument where possible to ensure updated data is saved to DB properly.
...
- Alter Item::SetEnchantmentDuration function, add parameter Player* because GetOwner() cannot be called in the function due to hashtable locking in the SaveAllPlayers process.
- Remove a sanity check prior to Item::AddToUpdateQueueOf, so assertions can detect whenever a higher level function was not called properly. Please report any crashes related to these assertions to get them resolved asap.
--HG--
branch : trunk
2010-03-16 01:05:56 +01:00
Machiavelli
3ba0862926
Fix guild bank money log display.
...
--HG--
branch : trunk
2010-03-15 17:17:19 +01:00
Darkrabbit
b0042f7056
* Optimized guild and arena team loading at startup
...
--HG--
branch : trunk
2010-02-18 02:42:59 +01:00
n0n4m3
490f4bf7ec
Fix some problem with Guild Bank after switch to client version 3.3.2, also cleanup code. Thx TOM_RUS.
...
--HG--
branch : trunk
2010-02-15 14:30:12 +01:00
Anubisss
d9cb070215
Implement QueryResult_AutoPtr type which is ACE's reference counted auto_ptr(ACE_Refcounted_Auto_Ptr) for QueryResult pointers.
...
Use this auto_ptr for every DB queries(except QueryNamedResult yet).
This patch guarantees NO memory leaks from QueryResult pointers.
Thanks to raczman for the idea and for the helping to make this patch.
--HG--
branch : trunk
2010-01-23 14:45:58 +01:00
n0n4m3
99f66a6bc9
Updated copyright for new year.
...
--HG--
branch : trunk
2010-01-16 20:19:18 +03:00
n0n4m3
250a00cc1c
Temporary revert 6743 commit. I fix this patch across 1-2 days.
...
--HG--
branch : trunk
2009-12-24 10:20:15 +01:00
n0n4m3
3fe0bc5254
Replaced time(NULL) on sGameTime.GetGameTime() this is used for better performance.
...
Original Timer.h divided into 2 parts. Shared project has no need to know about GameTime Singleton.
2 Identical structures with different types are now replaced with one generic templated structure and 2 typedefs.
--HG--
branch : trunk
2009-12-23 08:04:10 +01:00
Brian
36d30faabf
* Add support for RewSpellCast=-1. If -1 remove all auras applied to player at
...
* quest start.
* Patch by Kudlaty -- THANK YOU!
--HG--
branch : trunk
2009-12-21 14:48:30 -07:00
Rat
6fe36efe0f
*apply trinity style to whole source
...
*comment out all mangos to trinity defines
*this will make merging a little harder, but code will be more clear
--HG--
branch : trunk
2009-12-20 15:20:04 +01:00
n0n4m3
085bc555d7
Update Guild for 322a
...
--HG--
branch : trunk
2009-12-17 11:14:55 +01:00
spp
2acf288071
Add some checks to prevent guild bank crashes. Closes #646
...
--HG--
branch : trunk
2009-12-06 17:46:44 +01:00
maximius
e4e61ac99d
*Fix some typos.
...
--HG--
branch : trunk
2009-11-20 22:39:27 -08:00
maximius
c16e08faed
*Cleanup, search through the talent map instead of spell chains for talent ranks during spec swaps.
...
Also properly set talent state upon talent reset, and only reset talents that exist in the active spec. Refs #367 , #326
--HG--
branch : trunk
2009-11-20 22:38:01 -08:00
maximius
654519d1a6
*Some cleanup (mostly whitespace changes)
...
--HG--
branch : trunk
2009-11-20 19:11:28 -08:00
Machiavelli
a944217ede
Add an assert to trace down a crash, ref #68
...
--HG--
branch : trunk
2009-11-05 08:42:10 +01:00
maximius
3f338cc1c3
*Massive cleanup redux.
...
--HG--
branch : trunk
2009-10-17 16:20:24 -07:00
maximius
e585187b24
*Backed out changeset 3be01fb200a5
...
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius
26b5e033ff
*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
...
*Fix a possible crash in Spell::DoAllEffectOnTarget
--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
maximius
32798803f8
*[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. Author: VladimirMangos
*Fix a pretty stupid mistake of mine with that Stoneclaw Totem fix, put the code block in the wrong function!
*Use comparison instead of std::min (for some reason std::min seems to expect 3 arguments on Windows!?)
--HG--
branch : trunk
2009-09-14 13:34:23 -07:00
maximius
c61bb37a0e
*Config option to allow multiple Guild Masters by MrSmite
...
--HG--
branch : trunk
2009-09-12 22:33:24 -07:00
maximius
c22a6c7844
*[8466] Applied mangos coding style for Guild code. Author: Triply. Also did some cleanup of my own in Guild.cpp.
...
--HG--
branch : trunk
2009-09-11 14:39:38 -07:00
megamage
09974f0598
[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 >
--HG--
branch : trunk
2009-09-02 18:40:27 -05:00
megamage
b8d1a0cd17
[8447] Small code cleanups in guild loading. Author: VladimirMangos
...
--HG--
branch : trunk
2009-09-02 16:25:16 -05:00
Machiavelli
1c45055482
* Update to guild handlers. Fix bugs related to the wrong ranks being updated, the greyed out withdraw button when you were eligible to withdraw money, and the improper display of no withdrawals left for a tab when you have plenty.
...
NOTE: Guild masters might need to reconfigure their permissions per rank in order to resolve any permission issues.
--HG--
branch : trunk
2009-08-28 01:50:29 +02:00
megamage
4a1a82c5e2
[8409] Fixed guild creation date loading, and added another guild loading optimization - last one.
...
Signed-off-by: Triply <triply@getmangos.com >
--HG--
branch : trunk
2009-08-24 20:25:32 -05:00
megamage
aa86640fdf
[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 >
--HG--
branch : trunk
2009-08-24 20:23:54 -05:00
megamage
0d5028eea4
[8407] Extract from guild bank handler functions for 3 cases and move code to Guild class. Author: VladimirMangos
...
This mostly just move code and caller updates to use it from new place.
More code chnages possible later.
--HG--
branch : trunk
2009-08-24 20:18:16 -05:00
megamage
6e8009446d
[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 >
*Note: existing guild bank log will be removed.
--HG--
branch : trunk
2009-08-24 19:23:31 -05:00
Machiavelli
eaeba0b357
*Fix bug that item in guild bank would display improper spellcharges amount.
...
--HG--
branch : trunk
2009-08-21 20:07:27 +02:00
megamage
7f8ce1d809
[8315] Fixed memory leaks (mostly at server shutdown) and code cleanups. Author: VladimirMangos
...
* 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
--HG--
branch : trunk
2009-08-06 17:45:37 -05:00
megamage
b4957ee7b6
Small code cleanup in Guild::Roster Author: VladimirMangos
...
--HG--
branch : trunk
2009-07-24 09:08:35 +08:00
megamage
b5d802b70c
[8151] Fixed some format warnings and typos. Author: Win32
...
--HG--
branch : trunk
2009-07-12 17:52:27 +08:00
megamage
d9ec2d2196
[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.
--HG--
branch : trunk
2009-06-27 17:39:51 -05:00
Machiavelli
a4dafbf8ec
* More updating of iterator data types in loops
...
--HG--
branch : trunk
2009-06-18 18:29:28 +02:00
Machiavelli
3a309abfab
* In case of a 'for' loop, don't declare the iterator of a type that has a larger value range when the iterator can take a maximum value of a more efficient data type. (int to uint8 in most cases).
...
* Other minor cleanups, Null pointer checks etc.
--HG--
branch : trunk
2009-06-18 17:21:25 +02:00