Merge pull request #9327 from Mailaender/bridge-render-sizes

Fixed bridge rendering glitches
This commit is contained in:
RoosterDragon
2015-09-26 19:54:43 +01:00
5 changed files with 20 additions and 9 deletions

View File

@@ -13,9 +13,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
[Desc("Special case trait for unselectable actors that need to define targetable area bounds",
"for special cases like C4, engineer repair and tooltips.",
"Examples: bridge huts and crates.")]
[Desc("Special case trait for actors that need to define targetable area and screen map bounds manually.")]
public class CustomSelectionSizeInfo : ITraitInfo
{
[FieldLoader.Require]

View File

@@ -13,6 +13,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
[Desc("Automatically calculates the targetable area and screen map boundaries from the sprite size.")]
public class AutoSelectionSizeInfo : ITraitInfo, Requires<RenderSpritesInfo>
{
public object Create(ActorInitializer init) { return new AutoSelectionSize(this); }