Remove ISpriteBody

This commit is contained in:
abcdefg30
2015-12-20 18:44:55 +01:00
parent 7c0b30888d
commit 72ac5240b8
4 changed files with 5 additions and 13 deletions

View File

@@ -77,7 +77,7 @@ namespace OpenRA.Mods.Common.Traits
// If a sprite actor has neither custom QuantizedFacings nor a trait implementing IQuantizeBodyOrientationInfo, throw
if (qboi == null)
{
if (self.Info.HasTraitInfo<ISpriteBodyInfo>())
if (self.Info.HasTraitInfo<WithSpriteBodyInfo>())
throw new InvalidOperationException("Actor '" + self.Info.Name + "' has a sprite body but no facing quantization."
+ " Either add the QuantizeFacingsFromSequence trait or set custom QuantizedFacings on BodyOrientation.");
else