QAston
15bd8f3cd5
Core/Spells: Fix logic in AnyDeadUnitSpellTargetInRangeCheck - spells using this should now correctly check target requirements. This is an alternative fix to #4112 .
2011-12-24 08:40:30 +01:00
megamage
ce0dfa88a6
Revert "Temp fix for *nix build."
...
It builds in *nix without this patch.
This reverts commit e84fffe588 .
2011-12-22 10:15:17 -05:00
megamage
e84fffe588
Temp fix for *nix build.
2011-12-22 08:57:16 -05:00
megamage
36bfce08b4
Try to fix build in Linux.
2011-12-21 08:55:54 -05:00
megamage
8cf2062c1f
Update grid system. Try to fix some crashes and transport passengers (now they are despawned after a while).
2011-12-20 17:07:09 -05:00
megamage
6a648c01a4
Some clean up of grid system.
2011-12-07 13:02:44 -05:00
megamage
077a2194ba
Fix another place where corpse is added twice to a grid.
2011-11-11 18:57:50 -05:00
megamage
f47c0e661c
Add some comments for the previous crash fix. Thanks to Amit86.
2011-11-11 14:20:49 -05:00
megamage
9e3b4fe409
Cleanup before deleting objects when unloading grid. Fix #3922 .
2011-11-11 14:11:58 -05:00
megamage
31a88d4fe5
Fix the crash when removing object from an unloaded grid. Object should always be unlinked from grid no matter if the grid is loaded.
2011-11-10 17:31:45 -05:00
megamage
23b3f16f3a
Add some ASSERT in add/remove obj to/from grid.
2011-11-10 10:18:32 -05:00
Bootz
d1334624da
Core: Codestyle clean-up
...
"pl"->"player"
Note: codestyle methods needs maintained, Player* player.
still to do properly clean-up chat.cpp.
2011-11-07 11:18:00 -06:00
Bootz
f75ec5ba2b
Core: Codestyle clean-up
...
"plr"->player
Note: codestyle methods needs maintained, Player* player.
2011-11-07 11:06:39 -06:00
kaelima
f2000f3fb5
Core/Misc: Some minor cleanups
...
Fixed SQL added in prev commit.
2011-10-24 23:33:17 +01:00
megamage
91f56c181c
More cleanup of grid system.
2011-10-22 10:01:29 -04:00
megamage
80a18b9e56
Some cleanup of grid system.
2011-10-22 09:36:05 -04:00
kaelima
be0b2fcf97
Core/Grid:
...
- Simplified CellArea calculation (Original author: SilverIce)
- Removed unused code in Cell class (Original author: SilverIce)
- Improve some Visit functions.
2011-10-19 17:40:44 +01:00
megamage
7231ab959f
Clean up grid system. Get rid of GridLoader. This patch should not change any logic, except the incorrect calculation of the number of loaded corpse (which only affects log).
2011-10-18 14:31:34 -04:00
megamage
e27ef59548
Clean up grid system: allow directly creating Cell from x, y.
2011-10-18 11:18:49 -04:00
megamage
e0d933fed8
Use method IsCoordValid() to replace explicit checks.
2011-10-18 11:05:32 -04:00
megamage
c29ff41001
Rename some classes in grid system.
...
Note: The naming of classes is still confusing. "cell" usually refers to class "Grid", and "grid" usually refers to class "NGrid". But it requires a lot of changes to clean this up.
2011-10-18 10:53:34 -04:00
Spp
805e14a463
Core/Grid: Replaced ambiguous operator overloads with functions (Makes it clear to read)
2011-10-18 11:42:40 +02:00
Fredi Machado
97142102e0
Core/Misc: Added 'f' after float values
2011-10-17 07:38:27 -03:00
megamage
11bb9bfdb3
Fix compile error in gcc.
2011-10-11 08:56:44 -04:00
megamage
76c9c30c2b
Merge pull request #3399 from megamage/master
...
Fix the relocation of creatures across cells. Try to fix #3054 .
2011-10-10 13:12:15 -07:00
megamage
f9fc12650b
Merge pull request #3259 from Souler/pull
...
Traps and Basic Campfire ignoring unattackable flags.
2011-10-08 13:36:05 -07:00
Bootz
5b4c7783c2
REPO: Code-style clean-ups
...
* Fixed pMap->map
* Fixed pInstance->instance
* Fixed pInsta->instance
* Fixed pQuest->quest
* Fixed pWho->who
* Fixed pTarget->target
* Fixed pGo->go
~DEVNOTES: Handlers/QuestHandler.cpp still needs to be cleaned...
2011-10-07 19:45:43 -05:00
megamage
eb8cbae0d5
Fix the relocation of creatures across cells. Try to fix #3054 .
2011-10-07 17:36:23 -04:00
Bootz
81c0a3a847
REPO: code-style clean-up
...
* Fixed pPlayer->player
* Fixed pCreature->creature
~DevNote: codestyle for Player should be (*player), not *plr or *p...
same goes for Creatures (*creature)... more cleaning needed.
We've way too many codestyles happening here.
2011-10-07 11:08:09 -05:00
Bootz
f1ccb83dc0
REPO: Code-style change
...
* Fixed pUnit-unit
2011-10-07 10:48:56 -05:00
Nay
0f7d9e4837
Core/SAI: Fix an issue where SAI was ignoring civilian and passive unit flags
...
Closes #2526
Disclaimer: This was not thoroughly tested; report any issue caused by this change.
2011-10-01 16:29:23 +01:00
Spp
b16d2245bb
Cosmetic: Multiple cosmetic changes
...
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces
Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-29 12:43:05 +02:00
Souler
0f9fc672d5
Core/Grids: Traps shouldn't target unattackable units.
...
Hunter traps and Basic Campfire will no longer activate unattackable creatures.
2011-09-29 10:53:27 +02:00
Shauren
63b62d4ad0
Core/Grids: Added GameObjectWorker
2011-09-17 13:18:42 +02:00
QAston
fe25ce4fa3
Core/AI: Replace many Unit::IsHostileTo with Unit::IsValidAttackTarget or Creature::canCreatureAttack.
2011-09-17 00:56:59 +02:00
QAston
c0b1823524
Core/Entities: Replace Unit::canAttack usage with more accurate Unit::IsValidAttackTarget
2011-09-16 23:49:31 +02:00
Spp
af05915b9e
[Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions)
2011-09-15 14:12:57 +02:00
Spp-
3fac9914be
Core: Code cleanup (here and there)
2011-09-05 14:01:50 +02:00
QAston
71b9e0d8de
Core/Spells: Make mind sear aoe no longet target unit at which caster is channeling the spell.
2011-09-01 09:07:14 +02:00
QAston
e2d8faea09
Core/Spells: move Cannibalize and Carrion Feeder cast checks to SpellScripts.
2011-08-20 00:30:38 +02:00
Shauren
8e2a32906d
Core/Gridmonster: Increased upper value for search radius to size of grid
2011-08-08 13:16:03 +02:00
Spp
e7327e7e94
Core: Fix compile without PCH and fix some warnings
2011-08-03 11:23:08 +02:00
Spp-
acd0fc79f6
Core: Pass by const reference for simple objects replaced with pass by value
2011-08-01 14:23:27 +02:00
Shauren
a80b36c2f3
Core/Spells: Limited SPELL_ATTR3_PLAYERS_ONLY attribute to only allow players, not pets and totems. This fixes many boss area spells incorrectly selecting pets and totems as their targets.
2011-08-01 11:17:34 +02:00
Machiavelli
0711746b57
Core/Visibility: Send object destroy packets to dead players. Fixes persistent visuals of no longer existing entities while dead.
...
Closes #2458
2011-07-31 21:58:28 +02:00
Spp-
f37a2030c0
Core: Minor optimization in AnyUnfriendlyAttackableVisibleUnitInObjectRangeCheck
2011-07-12 13:30:33 +02:00
Lopin
a233e7b9d8
Core/Misc: Add new function for selection nearest player in given distance
2011-07-11 16:17:21 +02:00
kaelima
9a67aaa8b8
DB/Creature:
...
- Nuke the hacky column DeathState.
- Removed some hacks from Kologarn script, including some cleanup.
- Removed set deathstate command.
BIG thanks to Malcrom for replacing all creatures that had deathstate with proper dynamicflags/auras.
2011-06-27 20:22:53 +02:00
Shocker
e05f608919
Core/Spells: Don't allow Killing Spree to hit unattackable targets
2011-06-26 16:06:23 +03:00
Shocker
6b0b21fea7
Core/Spells: Don't allow Killing Spree to hit critters (by correcting AnyUnfriendlyVisibleUnitInObjectRangeCheck, this notifier may be used in the future for similar expected results)
2011-06-26 15:54:19 +03:00