]> Dogcows Code - chaz/carfire/commitdiff
git-svn-id: https://bd85.net/svn/cs3505_group@114 92bb83a3-7c8f-8a45-bc97-515c4e399668
authorKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Mon, 19 Apr 2010 20:45:01 +0000 (20:45 +0000)
committerKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Mon, 19 Apr 2010 20:45:01 +0000 (20:45 +0000)
CarFire/CarFire/CarFire/Human.cs

index 168fa06f627a0d9024489cf8a7e23c59247cc46f..d1746e388b4a15f68ed8128327e5cd7ef2a9525a 100644 (file)
@@ -114,6 +114,14 @@ namespace CarFire
             bool moveRight = keysPressed.Contains(Keys.Right);\r
             bool moveUp = keysPressed.Contains(Keys.Up);\r
             bool moveDown = keysPressed.Contains(Keys.Down);\r
+            if (moveLeft)\r
+                state = State.left;\r
+            else if (moveRight)\r
+                state = State.right;\r
+            else if (moveUp)\r
+                state = State.up;\r
+            else if (moveDown)\r
+                state = State.down;\r
 \r
             Point destination = MovementManager.GetNeighborCell(mMotion.Coordinates, moveLeft, moveRight, moveUp, moveDown);\r
             if (theMap.IsCellOpen(destination))\r
This page took 0.028527 seconds and 4 git commands to generate.