Some quick warning fixes

This commit is contained in:
Maddy Thorson 2021-02-01 19:36:20 -08:00
parent 937479c09d
commit 80c6cf0799
4 changed files with 4 additions and 3 deletions

View File

@ -171,7 +171,7 @@ namespace Strawberry
{
Scene?.Draw();
if (Console.Enabled)
if (Strawberry.Console.Enabled)
Strawberry.Console.[Friend]Draw();
Batcher.Draw();

View File

@ -34,7 +34,7 @@ namespace Strawberry
static public void DisposeAll()
{
DeleteDictionaryAndKeysAndItems!(Textures);
DeleteDictionaryAndKeysAndValues!(Textures);
Sprite.[Friend]Dispose();
}

View File

@ -96,7 +96,7 @@ namespace Strawberry
[Command("clear", "Clears the console window")]
static public void Clear()
{
DeleteAndClearItems!(messages);
ClearAndDeleteItems!(messages);
}
static private void Update()

View File

@ -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;