Commit Graph

18198 Commits

Author SHA1 Message Date
atlimit8
131084d129 Changed missed ActorInfo.Traits.Contains => ActorInfo.HasTraitInfo 2015-09-19 12:06:37 -05:00
reaperrr
d77839bb3d Merge pull request #9332 from atlimit8/TraitInfoAccess_1
TraitInfo through ActorInfo and HasTrait Removal
2015-09-19 17:06:10 +02:00
atlimit8
09984683a7 Add ActorInfo.TraitInfo[OrDefault]<T>() requiring ITraitIfo types 2015-09-19 09:56:14 -05:00
atlimit8
6970959ef1 .Trait[OrDefault]<Trait> => .Info.Traits.Get[OrDefault]<TraitInfo> where applicable 2015-09-19 09:49:24 -05:00
atlimit8
8162fa27ab Add ActorInfo.HasTraitInfo<T>() requiring ITraitInfo types 2015-09-19 09:49:24 -05:00
atlimit8
85fab45451 Remove Actor.HasTrait<T>() 2015-09-19 09:49:23 -05:00
reaperrr
959914779f Merge pull request #9376 from pchote/fix-news-panel-width
Make the news panel dropdown consistent across mods.
2015-09-19 14:20:38 +02:00
Paul Chote
55dee63b55 Make the news panel dropdown consistent across mods. 2015-09-19 12:46:07 +01:00
Matthias Mailänder
c0dd9c4566 Merge pull request #9359 from RoosterDragon/fix-pathfinder-layer-pooling
Fixed pooling of layers used for pathfinding
2015-09-19 13:07:33 +02:00
Matthias Mailänder
b5a5dfdb54 Merge pull request #9365 from atlimit8/HealUnitsCrateAction_use_ActorsWithTrait
HealUnitsCrateAction.Activate() use ActorsWithTrait<Health>()
2015-09-19 12:53:25 +02:00
Matthias Mailänder
6c26251b41 Merge pull request #9368 from atlimit8/Harvester_linq_syntax
Replace only use of Linq syntax
2015-09-19 12:03:19 +02:00
atlimit8
be010249d7 Replace only use of Linq syntax 2015-09-18 10:31:41 -05:00
atlimit8
1d9d28b540 HealUnitsCrateAction.Activate() use ActorsWithTrait<Health>() 2015-09-17 23:55:38 -05:00
reaperrr
4fa20e78fa Merge pull request #9304 from atlimit8/Fix_AttackBase_GetMinimumRange
Make AttackBase.GetMinimumRange() return WDist.Zero if there are no available armaments
2015-09-18 01:26:35 +02:00
reaperrr
ef451ad4a7 Merge pull request #9356 from atlimit8/RemoveIBodyOrientation
Remove redundant IBodyOrientation[Info] & replace with BodyOrientation[Info]
2015-09-18 01:11:54 +02:00
reaperrr
1c759427b5 Merge pull request #9358 from abcdefg30/ts_stnk
Fix a crash when the stnk of TS is cloaking
2015-09-18 01:05:18 +02:00
RoosterDragon
519be4374c Fixed pooling of layers used for pathfinding.
The previous implementation:
- Was failing to dispose of pooled layers.
- Was using a finalizer to allow undisposed layers to be reused.

This means all pooled layers are kept alive indefinitely until the map changes. If the finalizer is slow for any reason then the pathfiinder will allocate new layers when the pool runs out. Since these new layers are eventually stuffed back into the pool when the finalizer does run, this can theoretically leak unbounded memory until the pool goes out of scope. In practice it would leak tens of megabytes.

The new implementation ensures layers are disposed and pooled correctly to allow proper memory reuse. It also introduces some safeguards against memory leaks:
- A cap is set on the number of pooled layers. If more concurrent layers are needed than this, then the excess layers will not be pooled but instead be allowed to be garbage collected.
- No finalizer. An implementation that fails to call dispose simply allows the layer to be garbage collected instead.
2015-09-16 21:25:46 +01:00
abcdefg30
a5b9442170 Fix a crash when the stnk of TS is cloaking 2015-09-16 17:54:06 +02:00
atlimit8
45112cfa76 Remove redundant IBodyOrientation[Info] & replace with BodyOrientation[Info] 2015-09-15 22:57:08 -05:00
Matthias Mailänder
59edf85513 Merge pull request #9344 from reaperrr/fix-ra-water
Fixed RotationPaletteEffect tileset validity check
2015-09-15 21:10:37 +02:00
reaperrr
6613db7a15 Fix RotationPaletteEffect tileset validity check
If Tilesets was empty but ExcludeTilesets was not, it would always return false even though that combination is supposed to mean only the excluded tileset(s) is/are not valid for this effect.
2015-09-14 16:36:56 +02:00
reaperrr
605ec81c55 Merge pull request #9203 from Mailaender/tunnel-rendering
Added tunnel top rendering
2015-09-14 15:42:14 +02:00
reaperrr
642497a5b7 Merge pull request #9323 from abcdefg30/d2k_rock
Fixed a wrong tileset definition in d2k
2015-09-14 15:17:09 +02:00
Pavel Penev
3fc41238d8 Merge pull request #9333 from atlimit8/DuplicateUnitCrateAction_EnabledTargetting
Make DuplicateUnitCrateAction only check enabled targetability
2015-09-14 02:45:19 +03:00
Pavel Penev
4fad418db5 Merge pull request #9341 from reaperrr/d2k-cleanup1
Some D2k cleanup
2015-09-14 00:27:33 +03:00
reaperrr
ce8554b94a Make ornithopters targetable by anti-air weapons 2015-09-13 22:46:07 +02:00
reaperrr
6c828f90ad Remove unused airborne upgrade from unlandable d2k aircraft 2015-09-13 22:46:06 +02:00
reaperrr
ac9db803e0 Make Carryalls targetable as in original D2k 2015-09-13 22:35:12 +02:00
reaperrr
82b57165e7 Remove Parachutable from d2k infantry default 2015-09-13 22:33:06 +02:00
Pavel Penev
3e542d1039 Merge pull request #9338 from reaperrr/d2k-paradrop
Removes paradrop and carryall.infantry from D2k
2015-09-13 22:56:30 +03:00
reaperrr
ab603827ca Remove paradrop remnants from D2k 2015-09-13 21:49:24 +02:00
reaperrr
3fc11c4555 Remove carryall.infantry
No longer used since paradrops were removed.
2015-09-13 21:49:23 +02:00
reaperrr
be28da2a64 Remove paradrop power from Ix Lab 2015-09-13 21:49:22 +02:00
Pavel Penev
c41e3025c1 Merge pull request #9337 from reaperrr/d2k-orni
Removes unused ornithopter definition and renames ornithopter.bomber
2015-09-13 22:37:43 +03:00
reaperrr
7aaa31774d Rename ornithopter.bomber to just ornithopter 2015-09-13 19:41:41 +02:00
reaperrr
1d197da5ac Remove unused ornithopter definition 2015-09-13 19:39:38 +02:00
reaperrr
a580e6846e Merge pull request #9328 from Mailaender/ai-common-names
Fixed BuildingCommonNames magic
2015-09-13 18:53:37 +02:00
abcdefg30
48ecc717b2 Merge pull request #8996 from Mailaender/alpha-cloak
Added pre-multiplied alpha palettes for cloak effects
2015-09-13 18:53:17 +02:00
abcdefg30
47f07a47bd Merge pull request #9330 from clemty/buildtool
make: don't assume luac is installed
2015-09-13 17:47:29 +02:00
Matthias Mailänder
9df86f031b Merge pull request #9278 from pchote/rename-d2k-actors
Rename d2k actors to match original game rules.
2015-09-13 17:44:15 +02:00
abcdefg30
f78aea4f90 Merge pull request #8636 from Mailaender/irc
Added the in-game IRC client again
2015-09-13 17:14:36 +02:00
abcdefg30
4fc07c55b9 Merge pull request #9260 from Mailaender/tileset-import-fixes
Fixed the legacy isometric tileset importer
2015-09-13 17:07:24 +02:00
Matthias Mailänder
59142d7782 terrain sprite definition MiniYaml changed to plural form, too 2015-09-13 15:01:15 +02:00
Matthias Mailänder
d65600352b Merge pull request #9325 from Mailaender/ai-editor
Fixed HackyAI crashing the map editor
2015-09-13 13:48:36 +02:00
Matthias Mailänder
a7235d84e9 document the hidden keys 2015-09-13 08:30:17 +02:00
atlimit8
578a92370b Make DuplicateUnitCrateAction only check enabled targetability 2015-09-12 21:30:35 -05:00
clemty
378fff75bf don't assume luac is installed 2015-09-12 20:27:51 +02:00
Matthias Mailänder
f903cfea96 don't throw as we are checking for null later 2015-09-12 10:27:22 +02:00
Matthias Mailänder
39b79f5347 don't load the AI routines in the map editor 2015-09-12 08:40:40 +02:00
Matthias Mailänder
b4d22c2eb0 setup tunnel top rendering 2015-09-12 08:24:02 +02:00