diff --git a/src/Core/Game.bf b/src/Core/Game.bf index 5816f97..e9c2a00 100644 --- a/src/Core/Game.bf +++ b/src/Core/Game.bf @@ -171,7 +171,7 @@ namespace Strawberry { Scene?.Draw(); - if (Console.Enabled) + if (Strawberry.Console.Enabled) Strawberry.Console.[Friend]Draw(); Batcher.Draw(); diff --git a/src/Static/Assets.bf b/src/Static/Assets.bf index b08ecdd..91f75a3 100644 --- a/src/Static/Assets.bf +++ b/src/Static/Assets.bf @@ -34,7 +34,7 @@ namespace Strawberry static public void DisposeAll() { - DeleteDictionaryAndKeysAndItems!(Textures); + DeleteDictionaryAndKeysAndValues!(Textures); Sprite.[Friend]Dispose(); } diff --git a/src/Static/Console.bf b/src/Static/Console.bf index 08fb0ef..9cf19f4 100644 --- a/src/Static/Console.bf +++ b/src/Static/Console.bf @@ -96,7 +96,7 @@ namespace Strawberry [Command("clear", "Clears the console window")] static public void Clear() { - DeleteAndClearItems!(messages); + ClearAndDeleteItems!(messages); } static private void Update() diff --git a/src/Struct/Vector.bf b/src/Struct/Vector.bf index 14186db..633bb7d 100644 --- a/src/Struct/Vector.bf +++ b/src/Struct/Vector.bf @@ -74,6 +74,7 @@ namespace Strawberry return Vector(a.X, a.Y); } + [Commutable] static public bool operator==(Vector a, Vector b) { return a.X == b.X && a.Y == b.Y;