diff options
author | Zoryn Aaron <zoryn4163@gmail.com> | 2016-03-01 19:36:12 -0500 |
---|---|---|
committer | Zoryn Aaron <zoryn4163@gmail.com> | 2016-03-01 19:36:12 -0500 |
commit | 63392a21e4d95a2803bcb0a6beffc52b9b146dea (patch) | |
tree | 7baf70da9d294a57fb49932c4492c0face73171c /StardewModdingAPI/Inheritance/SGame.cs | |
parent | 069589db98df9e388c919a32f8503ad7cd854b7c (diff) | |
download | SMAPI-63392a21e4d95a2803bcb0a6beffc52b9b146dea.tar.gz SMAPI-63392a21e4d95a2803bcb0a6beffc52b9b146dea.tar.bz2 SMAPI-63392a21e4d95a2803bcb0a6beffc52b9b146dea.zip |
fixes my derping
Diffstat (limited to 'StardewModdingAPI/Inheritance/SGame.cs')
-rw-r--r-- | StardewModdingAPI/Inheritance/SGame.cs | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/StardewModdingAPI/Inheritance/SGame.cs b/StardewModdingAPI/Inheritance/SGame.cs index 0202e55f..fdc6f3f7 100644 --- a/StardewModdingAPI/Inheritance/SGame.cs +++ b/StardewModdingAPI/Inheritance/SGame.cs @@ -117,17 +117,19 @@ namespace StardewModdingAPI.Inheritance { base.Draw(gameTime); Events.InvokeDrawTick(); - /* - spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend, SamplerState.PointClamp, null, null); - if (CurrentLocation != null) - CurrentLocation.draw(Game1.spriteBatch); + if (Program.debug) + { + spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend, SamplerState.PointClamp, null, null); - if (player != null && player.position != null) - spriteBatch.DrawString(Game1.dialogueFont, Game1.player.position.ToString(), new Vector2(0, 180), Color.Orange); - - spriteBatch.End(); - */ + if (CurrentLocation != null) + CurrentLocation.draw(Game1.spriteBatch); + + if (player != null && player.position != null) + spriteBatch.DrawString(Game1.dialogueFont, Game1.player.position.ToString(), new Vector2(0, 180), Color.Orange); + + spriteBatch.End(); + } } public static Int32 RegisterModItem(SObject modItem) |