Fixed issues with objects being destroyed underfoot.

This commit is contained in:
Joshua Navarro 2018-12-28 22:23:16 -08:00
parent 1efe48b4d6
commit 3369c11cb9
1 changed files with 9 additions and 2 deletions

View File

@ -99,11 +99,18 @@ namespace Revitalize.Framework.Objects
this.bigCraftable.Value = false; this.bigCraftable.Value = false;
if (this.info.ignoreBoundingBox) if (this.info.ignoreBoundingBox)
{ {
this.boundingBox.Value = new Rectangle(Int32.MinValue, Int32.MinValue, 0, 0); //this.boundingBox.Value = new Rectangle(Int32.MinValue, Int32.MinValue, 0, 0);
} }
}
public override bool isPassable()
{
return this.info.ignoreBoundingBox;
} }
public override Rectangle getBoundingBox(Vector2 tileLocation) public override Rectangle getBoundingBox(Vector2 tileLocation)