From 1959205421a9a20c48133f93102e467b0f8e26f8 Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 26 Apr 2010 01:33:48 +0000 Subject: [PATCH] Melee has a cooldown now. git-svn-id: https://bd85.net/svn/cs3505_group@146 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- CarFire/CarFire/CarFire/Melee.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CarFire/CarFire/CarFire/Melee.cs b/CarFire/CarFire/CarFire/Melee.cs index 38be303..f113824 100644 --- a/CarFire/CarFire/CarFire/Melee.cs +++ b/CarFire/CarFire/CarFire/Melee.cs @@ -53,8 +53,10 @@ namespace CarFire coolDown--; else if (coolDown == 0) { + if (keysPressed.Contains(Keys.Space)) { + coolDown = hitCoolDown; int startX = Coordinates.X; int startY = Coordinates.Y; if (Motion.Direction == Direction.Down || Motion.Direction == Direction.LowerLeft || Motion.Direction == Direction.LowerRight) -- 2.45.2