Commit Graph

275 Commits

Author SHA1 Message Date
Spp
be01821050 More warning removal (Some code modifications and cleanup when needed)
--HG--
branch : trunk
2010-04-19 17:03:10 +02:00
Spp
74dd02d024 Remove LOTS of compile warnings
--HG--
branch : trunk
2010-04-19 09:26:37 +02:00
Spp
4635fbc020 Code Style (game + scripts only):
"!=" --> " != " (when needed)
"  !=" --> " !="
"!=  " --> "!= "

--HG--
branch : trunk
2010-04-08 08:20:08 +02: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
malcromdev@gmail.com>
83500cb1e4 Added SCRIPT_COMMAND_MODEL 32 Allows changing of npc model in db scripts.
--HG--
branch : trunk
2010-03-30 19:01:25 -02:30
malcromdev@gmail.com>
66f5d749c0 Added script command 31 SCRIPT_COMMAND_EQUIP inables an npc to change weapons in TC scripts.
--HG--
branch : trunk
2010-03-29 17:45:08 -02:30
Xanadu
2c605ee482 Upgraded SCRIPT_COMMAND_EMOTE to do state emotes, too, based on datalong2 value. By Malcrom.
--HG--
branch : trunk
2010-03-17 21:00:44 +01:00
thenecromancer
e1542df90c Convert some C style casts to new functions
--HG--
branch : trunk
2010-03-11 20:51:31 +01:00
Xanadu
ebee705452 Fixed SCRIPT_COMMAND_ORIENTATION, orientation needs to be float. Credit to Malcrom.
--HG--
branch : trunk
2010-03-11 16:54:25 +01:00
raczman
07f3b91426 Some Creature* casts moved to new ToCreature.
Added const Creature* ToCreature()

--HG--
branch : trunk
2010-03-07 18:30:53 +01:00
_manuel_
661a8be9a5 Implemented SCRIPT_COMMAND_ORIENTATION.
--HG--
branch : trunk
2010-03-01 19:40:05 -03:00
silver1ce
e010310c6d removed redundant linking
--HG--
branch : trunk
2010-02-27 15:51:26 +02:00
silver1ce
fcaa318fb3 Update visibility system
*visibility updates and ai relocations processed simultaneously for each grid
  *these operations now are not synchronized for different grids
  *some changes into structure of visibility notifiers

--HG--
branch : trunk
2010-02-27 15:25:14 +02:00
Brian
486c00891b * Core switch to client 3.3.2 (11403)
* Credits (in no particular order) to:
* n0n4m3, raczman, manuel, Spp, Malcrom, Teacher, QAston, Tartalo,
* thenecromancer, Xanadu, Trazom, Zor, kiper
* Additional credits to:
* TOM_RUS and NoFantasy from MaNGOS
* Thanks for testing Aokromes and XTElite1
* SoTA still needs some work, but is very playable (huge thanks to raczman and
* kiper)
* To upgrade, you need to apply all SQL from sql/updates/3.2.2a_old from the
* last rev you are on
* and then apply all SQL from sql/updates/3.3.2_old to char / realmd / world
* DBs
* Known problem with guild banks.

--HG--
branch : trunk
2010-02-14 19:13:14 -07:00
Xanadu
f8d1920fa5 Yet more cleanup, mostly in the script system. This should conclude the script integration into core.
--HG--
branch : trunk
2010-02-05 13:01:32 +01:00
silver1ce
02acc66043 cleanup into grid containers
grid containers doesn't contains guid keys, so guid parameter is useless,
 removed find functions(anyway result of search would be null always)

--HG--
branch : trunk
2010-02-03 05:23:32 +02:00
XTZGZoReX
c3ae3b88aa * Implement CMSG_CORPSE_MAP_POSITION_QUERY/CMSG_CORPSE_MAP_POSITION_QUERY_RESPONSE opcodes. Thanks to: Ceris, Lightguard, raczman for helping with research/code.
* Fix SMSG_QUERY_TIME_RESPONSE use/structure. Patch/research by TOM_RUS.

--HG--
branch : trunk
2010-01-29 22:24:18 +01:00
XTZGZoReX
9f00ca3eb8 * Remove CellLock class and all cell-level thread locking.
** It was wasting CPU power as cell-level locking is not needed.
** Our multithreading is on map-level, not cell-level.
** CellLock was just a 'proxy' between Cell and CellPair and in some cases carried redundant data.
** Some minor cleanup in Cell::Visit/Map::Visit.

--HG--
branch : trunk
2010-01-23 22:24:41 +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
QAston
216d32e8a7 *Prevent assertion fail in Unit::_AddAura after creature add to remove list.
--HG--
branch : trunk
2010-01-22 20:03:47 +01:00
Rat
0cc053ea4d *Integrate Script system to Core
-added ScriptMgr for loading scripts
-removed bindings
-moved script system to src/game
-moved scripts to src/scripts
-VC project files updated
-cmakes updated (not 100% done yet)

NOTE to Devs:
-file locations changed
-precompiled renamed to ScriptedPch
-ecsort_ai renamed to ScriptedEscortAI
-follower_ai renamed to ScriptedFollowerAI
-guard_ai renamed to ScriptedGuardAI
-simple_ai renamed to ScriptedSimpleAI
-sc_creature renamed to ScriptedCreature
-sc_gossip renamed to ScriptedGossip
-sc_instance  renamed to ScriptedInstance

*use the new headers in scripts, thank you

NOTE to ALL:
cmake not fully tested, please report any errors with it
could make creashes, incompability
USE AT YOUR OWN RISK before further tests!!

--HG--
branch : trunk
2010-01-19 11:36:05 +01:00
silver1ce
cfca61b176 Auras with turn/move interrupt flags are now removed for creatures when they turn/move, cleanup
--HG--
branch : trunk
2010-01-18 21:51:45 +02:00
n0n4m3
782fa95f1f Fixed crash in Wintergrasp when send incorrect GetArea flag and coordinats
--HG--
branch : trunk
2010-01-17 08:32:48 +03:00
n0n4m3
99f66a6bc9 Updated copyright for new year.
--HG--
branch : trunk
2010-01-16 20:19:18 +03:00
silver1ce
2c03836a7c some changes into grid relocations, cleanup
player with incorrect coordinates wouldn't be added into map,
fixed problem that sometimes grid not marked as active even with players inside

--HG--
branch : trunk
2010-01-16 11:43:47 +02:00
QAston
758baae61b *Make sure that any aura (in case of aura remove linked auras for example) won't survive Unit::RemoveAllAuras.
--HG--
branch : trunk
2010-01-12 00:14:09 +01:00
silver1ce
8c85caf41d Resolves #259 fixed crash, caused by incorrect cell_id generation
--HG--
branch : trunk
2010-01-10 22:28:36 +02:00
silver1ce
74bd8084a0 dropped old code, which unused since new visibility system implemented
--HG--
branch : trunk
2010-01-10 16:33:14 +02:00
silver1ce
6933199257 call SetPosition when player relocated by movement generator.
SetPosition should interrupt auras with movement or turn interrupt flags, update position for group, etc

--HG--
branch : trunk
2010-01-06 12:26:18 +02:00
silver1ce
f82d5cb3fc fixed the bug that GetVmapHeight returns incorrect height on terrains(flying units fall below map etc)
also unlocked max ray lenght for getHeight, by default it's 10 yards

--HG--
branch : trunk
2010-01-06 12:15:02 +02: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
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
1f9530af21 Implement SCRIPT_COMMAND_KILL_CREDIT (8). by NoFantasy
--HG--
branch : trunk
2009-12-19 18:53:27 +01:00
n0n4m3
243f33b5ea Implement new visibility system, based on Silverice patch for mangos
--HG--
branch : trunk
2009-12-19 10:12:40 +01:00
n0n4m3
9f45beb67e Update Map for 322a and new instance system
--HG--
branch : trunk
2009-12-17 11:30:18 +01:00
n0n4m3
2028f0658b Removed mtmaps OpenMP
Implement mtmaps based on ACE
For stable work MapUpdate.Threads=2 in config

--HG--
branch : trunk
2009-12-17 07:34:00 +01:00
n0n4m3
365f0ae562 Replace some assert with return statement, fixed some crash bugs
--HG--
branch : trunk
2009-12-17 06:49:36 +01:00
spp
314031016b Some area flag fixes:
- Krasus Landing (Dalaran)
- The Forlorn Mine (Storm Peaks)
- Boulderslide Cavern (Stonelaton Mountains)
- Palemane Rock (Mulgore)

--HG--
branch : trunk
2009-12-06 10:05:01 +01:00
tartalo
327a400e0b Fix switch logic (I forgot a break; on a previous commit)
--HG--
branch : trunk
2009-12-02 11:49:50 +01:00
tartalo
b7934fc245 Fix area flag problem, by Spp: Dalaran. Closes #509
--HG--
branch : trunk
2009-12-01 11:11:41 +01:00
tartalo
23671382f0 Fix area flag problem, by Spp: The Forlorn Mine. Closes #567
--HG--
branch : trunk
2009-12-01 11:10:12 +01:00
maximius
055f16f525 *Little cleanup, and access GetMaxVisibleDistance functions statically instead of through the sWorld singleton.
--HG--
branch : trunk
2009-11-22 19:56:48 -08:00
maximius
9b7f2240b8 *LIttle bit of cleanup, fix a warning.
--HG--
branch : trunk
2009-11-22 19:30:36 -08:00