Commit Graph
90 Commits
Author SHA1 Message Date
maximius 333f1c9d72 *[8475] fixed some gcc-warnings Author: balrok
*[8476] Revert some recent cleanup changes, some other fixes and cleanups. Author: VladimirMangos
*[8489] Fixed player visibility update in case view point different from player itself. Author: SilverIce
*[8493] Avoid unexpected multiply error messages at wrong `quest_template`.`RewSpell*` Author: VladimirMangos
*[8496] Resolve some #include cycles and unsafe code.
* Common.h -> Threading.h -> Errors.h -> Common.h
* Remove reduncdent #include "ByteBuffer.h" in headers
* Remove redundent #include "Auth/BigNumber.h" in headers
* Avoid multyply data copy at use some now dropped functions in BigNumber.
* Avoid copy fixed byte count from byte arrays with unknown real size created from BigNumber.
* Avoid possible problems for build mangos at different platform or compilers. Author: VladimirMangos.
*[8501] Apply code style and cleanups to some Player functions. Author: VladimirMangos.
*[8502] Disable quests related to specific game events at startup if event not active. Also rename member boolean variable. Author: NoFantasy
*[8506] Add check for IsAutoComplete() in SendPreparedQuest().
For cases where quest is repeatable but has Method!=0, QuestDetails must be sent instead of RequestItems.
Some additional code cleanup. Author: NoFantasy
*[8507] Check amount of spawned pools before decrement to avoid unexpected result. Also rename variable to more meaningful name. Signed-off-by: NoFantasy <[email protected]>

Thanks to Stryker and onkelz28!

--HG--
branch : trunk
2009-09-18 14:10:37 -07:00
megamage 2a4c9bcaf9 *Make position as a class;
--HG--
branch : trunk
2009-08-29 14:58:45 -05:00
megamage 1f88411ccc *Delete object after map update. This will make mtmap safer.
--HG--
branch : trunk
2009-08-25 15:12:22 -05:00
megamage 1ee90e1022 *Update vehicle system. Make vehicle a seperate class from creature.
--HG--
branch : trunk
2009-08-23 22:09:43 -05:00
megamage bd0dbcc9ad *Add script lock for ScriptsProcess() because some bad scripts may cause dead loop.
--HG--
branch : trunk
2009-08-19 17:42:56 -05:00
megamage 7292420583 *Rewrite and simplify sendmessagetoset functions. This fixes the bug that player cannot see dummy aura is cancelled when puppet is far away.
--HG--
branch : trunk
2009-08-12 23:23:53 -05:00
megamage 962b88a381 *ResetMap for worldobjects when map is deleted.
--HG--
branch : trunk
2009-08-11 16:33:33 -05:00
megamage a78a0c6b01 *Fix a crash caused by relocationnotify
--HG--
branch : trunk
2009-08-08 17:47:23 -05:00
megamage befbae3a61 *Fix the bug that players get stuck after teleported out of bg.
*Do not delete the map immediately until all players are teleported.

--HG--
branch : trunk
2009-08-06 16:14:13 -05:00
QAston 1d96091d2a *Improvements in map managing.
--HG--
branch : trunk
2009-08-01 00:20:32 +02:00
megamage ca271eb5dc [8272] Fixed typos in world 'height' by code. Author: Sorya
--HG--
branch : trunk
2009-07-31 11:25:28 +08:00
megamage 0a2af88cb4 [8252] Move DB scripting code from global World to Map. Author: Ambal
This one more step to pre-map events proccesing and parallel in future.

    [8256] Restore DB script loading broken after [8252]. Author: VladimirMangos

    Also propetly decrease scheduled DB script actions at map unloading.
    Some code style restore.

--HG--
branch : trunk
2009-07-31 10:48:34 +08:00
megamage 208087ff6e [8182] Store and use Map* pointer in WorldObject instead map ids for speedup Author: Ambal
Also some code logic cleanups.
    Changes let make more cleanups in base map access and other places,
    but this chnages not inlcuded in patch.

*This patch may cause crash.

--HG--
branch : trunk
2009-07-16 11:49:00 +08:00
aven_coda b39bff681f *Allow to fish in shallow water.
--HG--
branch : trunk
2009-07-09 18:06:08 +02:00
megamage 5daba83c70 *Move relocation notify back to map class so that mtmap can work better.
--HG--
branch : trunk
2009-06-10 16:33:09 -05:00
megamage 427a81649b *Fix the bug that players cannot see anything in instance.
--HG--
branch : trunk
2009-06-09 23:52:45 -05:00
megamage 2625b4b6c6 *Update relocation notification code. Always store pointers instead of guids.
--HG--
branch : trunk
2009-06-09 16:05:14 -05:00
megamage cb72853dc6 *Cleanup message deliver functions. Remove unused parameters.
--HG--
branch : trunk
2009-05-27 09:09:22 -05:00
megamage c2588042e9 *Move some random generator functions to map class: functions in map/object/movementgenerator/spell
--HG--
branch : trunk
2009-05-25 12:05:23 -05:00
megamage 2478087b5c *Merge.
--HG--
branch : trunk
2009-05-25 11:34:01 -05:00
raczman c66877019e Added MTRand object to Map class.
This is first step of getting rid of static MTRandTSS object.

--HG--
branch : trunk
2009-05-15 22:41:13 +02:00
megamage 88107fa1d6 [7811] do not reload already loaded map coordinats at runtime. Author: Ambal
--HG--
branch : trunk
2009-05-13 18:24:35 -05:00
megamage 25e5c99dec [7810] Moved ZThread related code on ACE framework. Author: Ambal
Remove ZThread source code from mangos.

--HG--
branch : trunk
2009-05-13 18:22:21 -05:00
megamage fc7e1db9fb [7690] Move GetCreature/GetGameobject to class Map. Author: VladimirMangos
* This let get objects at map without reference to player or another object.
    * Simplify future implementation for per-map storage for like objects

--HG--
branch : trunk
2009-04-20 20:28:19 -05:00
Machiavelli 99fc17d44f * Tabs to spaces cleanup
--HG--
branch : trunk
2009-04-19 18:48:20 +02:00
megamage 5b124bf73f *Merge.
--HG--
branch : trunk
2009-04-15 17:14:17 -05:00
raczman 4fb720c7d1 Update to creature formations.
This is a big merge, it may cause problems. Use with caution, report bugs.

--HG--
branch : trunk
2009-04-15 15:46:02 +02:00
megamage 0ce060ddd7 *Make CreatureGroupHolder map-based to prevent crash when using multi-thread map.
--HG--
branch : trunk
2009-04-10 12:46:40 -05:00
XTZGZoReX cc2a089a9d * Trailing whitespace removed.
--HG--
branch : trunk
2009-04-06 21:14:51 +02:00
megamage e53521d228 *Merge.
--HG--
branch : trunk
2009-04-04 13:11:03 -06:00
megamage 3d1200f4ac [7609] Trailing whitespace cleaning Author: freghar
--HG--
branch : trunk
2009-04-03 16:39:21 -06:00
megamage f2e88cae51 *Fix some visibility bug.
--HG--
branch : trunk
2009-04-02 20:27:10 -06:00
megamage 4ca04684f2 [7593] Map::EnsureGridLoaded related cleanups and fixes: Author: VladimirMangos
* Make generic EnsureGridLoaded function and move specialized code to LoadGrid and EnsureGridLoadedAtEnter
    * Rename args to gx/gy for low-level grid numbering values.
    * Remove redundent LoadMpa call after always case loading maps in EnsureGridCreated

--HG--
branch : trunk
2009-04-02 16:33:35 -06:00
megamage b91529fd8e *Backport some code from TC2.
--HG--
branch : trunk
2009-03-31 14:40:54 -06:00
megamage e3da95f16a [7578] Replace generic [7577] implememtaion by more explicit code. Author: VladimirMangos
This must restore build at Unix/Linux.

--HG--
branch : trunk
2009-03-29 17:15:37 -06:00
megamage 6e438e38ec *Temp fix build in linux.
--HG--
branch : trunk
2009-03-28 19:43:04 -06:00
megamage 829c8022ac [7577] Implement YellToZone for different world object types. Author: VladimirMangos
--HG--
branch : trunk
2009-03-28 18:03:56 -06:00
megamage bc2f2bc56a [7552] Move client version dependend DBC code to src/game. Author: VladimirMangos
--HG--
branch : trunk
2009-03-27 09:58:20 -06:00
megamage 8f627853df *More work on summon system.
--HG--
branch : trunk
2009-03-20 14:01:46 -06:00
megamage ef47783882 [7487] Avoid attempt use InstanceSave data for non-dungeons. Author: VladimirMangos
Also check map existance and correctness at instance data loading.
    Removed unused and totally bugged InstanceMap::GetResetTime.

--HG--
branch : trunk
2009-03-18 20:41:49 -06:00
megamage 6e29ab4fbb [7440] Use server-side only zone info. Optimize related calles in case zone and subzone use. Author: VladimirMangos
This in some cases make some zones not explorable if it not have server side data in current maps
    but not allow cheating with zone set from client.

--HG--
branch : trunk
2009-03-11 16:17:37 -06:00
megamage dc4a456416 [7439] Fix wrong liquid level in some places. Need reectract maps. Author: DiSlord
Remove some log on extract maps.
    Add liquid status log to .gps command

--HG--
branch : trunk
2009-03-10 15:33:54 -06:00
megamage 5f7a2b4355 [7428] Add new .map file format use more compact data store and use
Rewrite .map extractor
     + extract more useful data
     + add "-f 0" option for disable size/accuracy optimisation
     + Compatability vs 2.4.3 client data
    More fast get .map data
    Implement fatigue timer
    Rewrite breath timer
    Allow absorb/resist for lava/slime environmental damage

    Need re-extract map for work.

Author: DiSlord

--HG--
branch : trunk
2009-03-09 18:06:19 -06:00
megamage 7915fd768a *Merge.
--HG--
branch : trunk
2009-03-06 18:09:01 -06:00
Blaymoira fd2fd00c14 *Implement access_requirement table - by Iskander
- now check the requirements on teleport not only on areatrigger use
- moved some columns from instance_template and areatrigger_teleport to access_requirement table

--HG--
branch : trunk
2009-03-05 21:02:33 +01:00
megamage c1ea842cf7 *Merge.
--HG--
branch : trunk
2009-03-05 09:17:57 -06:00
megamage e3eba9331e *Fix a crash.
--HG--
branch : trunk
2009-03-03 19:07:52 -06:00
megamage 00b7908c51 [7337] Make some methods const. Author: ApoC
--HG--
branch : trunk
2009-02-27 12:15:06 -06:00
megamage d3a6900667 *Merge.
--HG--
branch : trunk
2009-02-26 20:43:35 -06:00
megamage 23ef8a6dd6 *Fix a crash.
--HG--
branch : trunk
2009-02-26 17:01:02 -06:00