diff options
| author | Ben Beltran <ben@nsovocal.com> | 2018-06-26 17:03:58 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2018-06-26 17:03:58 -0500 |
| commit | 9ad526c0233134a928cb5889dccb94458fc6dfd0 (patch) | |
| tree | fa2282abbde8735b801125bb18294c7ec1847a92 /SuperPolarity/Actors/GameActor.cs | |
| parent | ae4f458103f5bfa44c833a147e7852e23cc02217 (diff) | |
Update source to compile on VS Studio for mac
Diffstat (limited to 'SuperPolarity/Actors/GameActor.cs')
| -rw-r--r-- | SuperPolarity/Actors/GameActor.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/SuperPolarity/Actors/GameActor.cs b/SuperPolarity/Actors/GameActor.cs index 8015ffa..3f426c0 100644 --- a/SuperPolarity/Actors/GameActor.cs +++ b/SuperPolarity/Actors/GameActor.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -55,7 +55,11 @@ namespace SuperPolarity { base.Draw(spriteBatch); - spriteBatch.Draw(Texture, Position, null, Color, Angle, Origin, 1f, SpriteEffects.None, 0f); + try { + spriteBatch.Draw(Texture, Position, null, Color, Angle, Origin, 1f, SpriteEffects.None, 0f); + } catch (ArgumentNullException) { + Console.WriteLine ("Where'd the texture go?."); + } } public override void CleanUp() |