diff -r c4506ad5a55e135ee73f534ce95672d7e2579100 -r 6ce01434b6b1474820746216a4e6c84fcf39e7b3 axios/Axios_settings.cs --- a/axios/Axios_settings.cs Fri May 18 21:35:58 2012 -0500 +++ b/axios/Axios_settings.cs Sat May 19 16:19:06 2012 -0500 @@ -87,6 +87,8 @@ * - Adding cut extension - [Author: BJD] * - Adding support for custom handling of Gleed2D items * - Changing location of GetTexture to extensions + * - Enabling commented log messages + * - Fixing bug where loadrecentangleitem wouldn't be called by Gleed2D library * */ #endregion diff -r c4506ad5a55e135ee73f534ce95672d7e2579100 -r 6ce01434b6b1474820746216a4e6c84fcf39e7b3 axios/Engine/Gleed2D/RectangleItem.cs --- a/axios/Engine/Gleed2D/RectangleItem.cs Fri May 18 21:35:58 2012 -0500 +++ b/axios/Engine/Gleed2D/RectangleItem.cs Sat May 19 16:19:06 2012 -0500 @@ -27,10 +27,12 @@ public override void load(AxiosGameScreen gameScreen, ref Dictionary cache) { base.load(gameScreen, ref cache); - - _body = BodyFactory.CreateRectangle(gameScreen.World, ConvertUnits.ToSimUnits(Width), ConvertUnits.ToSimUnits(Height), 1f); - _body.Position = ConvertUnits.ToSimUnits(Position) + new Vector2(ConvertUnits.ToSimUnits(Width)/2, ConvertUnits.ToSimUnits(Height)/2); - _body.UserData = this; + if (gameScreen.LoadRectangleItem(this)) + { + _body = BodyFactory.CreateRectangle(gameScreen.World, ConvertUnits.ToSimUnits(Width), ConvertUnits.ToSimUnits(Height), 1f); + _body.Position = ConvertUnits.ToSimUnits(Position) + new Vector2(ConvertUnits.ToSimUnits(Width) / 2, ConvertUnits.ToSimUnits(Height) / 2); + _body.UserData = this; + } } } }