Commit Graph

60 Commits

Author SHA1 Message Date
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
megamage f92e8315cf [7918] Improve portability in work with uint64 string format specifiers and in code literals. Author: VladimirMangos
* 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

--HG--
branch : trunk
2009-05-31 16:15:12 -05:00
megamage de11b9e901 [7730] Some optimizantion and code style. Author: zhenya
--HG--
branch : trunk
2009-04-29 00:26:07 -05:00
megamage 941e5b9dbd [7532] Avoid warnings at use size_t with printf fromat strings. Author: VladimirMangos
--HG--
branch : trunk
2009-03-24 17:38:14 -06:00
megamage f9aaf5bffb [7422] Allow localization base at guildmaster locale default guild rank names at guild creating. Author: VladimirMangos
--HG--
branch : trunk
2009-03-09 17:48:18 -06:00
megamage 328345ac1a [7403] much more unneeded includes removed Author: balrok
--HG--
branch : trunk
2009-03-08 13:05:56 -06:00
megamage 31637d4aac *Merge.
--HG--
branch : trunk
2009-02-18 11:36:19 -06:00
KingPin 14234c86fa Newline added to bottom of all files.
--HG--
branch : trunk
2009-02-17 20:07:49 -06:00
megamage 089dece311 [7282] Store guilds in map for fast search by id, some other guild/arenateam related cleanups. Author: zhenya
--HG--
branch : trunk
2009-02-15 12:14:14 -06:00
megamage 3b741f1e61 [7277] Correctly show guild bank tab info text for author and members not only after login but also after change. Author: VladimirMangos
--HG--
branch : trunk
2009-02-15 11:59:05 -06:00
megamage 6aee5fcbe7 *Merge.
--HG--
branch : trunk
2009-02-12 17:09:15 -06:00
Paradox d230302b16 Replace tabs with spaces in more files.
--HG--
branch : trunk
2009-02-09 08:16:34 -05:00
Drahy 5dab980495 * Updated copyright notice for new year (2009) part 2
* Changed mangos website

--HG--
branch : trunk
2009-02-04 12:42:26 +01:00
Drahy 7c19c420c6 * Updated copyright notice for new year (2009) part 1 - Mercurial cant convert all files at once
--HG--
branch : trunk
2009-02-04 12:04:12 +01:00
megamage ab4b9160f2 *Update to Mangos 7151.
--HG--
branch : trunk
2009-01-22 22:44:27 -06:00
megamage e2ee47fb35 *Update to Mangos 6963.
--HG--
branch : trunk
2008-12-28 12:10:31 -06:00
megamage 184b82abcc Backed out changeset: ad4f100c0a9d
--HG--
branch : trunk
2008-12-24 11:18:01 -06:00
megamage 3cb4e7c716 *Update to Mangos 6938. (Only build for VC9)
--HG--
branch : trunk
2008-12-24 09:58:26 -06:00
megamage 65ef38963d *The last merge from Mangos TBC. Update to Mangos v0.12.
--HG--
branch : trunk
2008-12-22 10:59:38 -06:00
megamage 400f7b8596 *Temp fix for crash caused by AV creature. Need to find a way to allow summoned creatures to use RandomMovement.
--HG--
branch : trunk
2008-12-19 16:05:13 -06:00
megamage b6c288ca9f *Update to Mangos 6902. Source: Mangos.
*Skipped rev: rev 6893, some code about waypoint movement.

--HG--
branch : trunk
2008-12-12 11:21:28 -06:00