]> Dogcows Code - chaz/carfire/commitdiff
Melee has a cooldown now.
authorKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Mon, 26 Apr 2010 01:33:48 +0000 (01:33 +0000)
committerKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Mon, 26 Apr 2010 01:33:48 +0000 (01:33 +0000)
git-svn-id: https://bd85.net/svn/cs3505_group@146 92bb83a3-7c8f-8a45-bc97-515c4e399668

CarFire/CarFire/CarFire/Melee.cs

index 38be3038a5ae2e231affcf3ac3b9a29890173a65..f113824b4b250ba3119bebf2714a4f38dea65faa 100644 (file)
@@ -53,8 +53,10 @@ namespace CarFire
                 coolDown--;\r
             else if (coolDown == 0)\r
             {\r
+                \r
                 if (keysPressed.Contains<Keys>(Keys.Space))\r
                 {\r
+                    coolDown = hitCoolDown;\r
                     int startX = Coordinates.X;\r
                     int startY = Coordinates.Y;\r
                     if (Motion.Direction == Direction.Down || Motion.Direction == Direction.LowerLeft || Motion.Direction == Direction.LowerRight)\r
This page took 0.02248 seconds and 4 git commands to generate.