From 17276fa13b40614cb682c2afb83717ae06e75e0e Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Thu, 27 Feb 2014 13:55:11 +0000 Subject: New level, minor interface changes. --- global.h | 1 + 1 file changed, 1 insertion(+) (limited to 'global.h') diff --git a/global.h b/global.h index fee13e3..109c81a 100644 --- a/global.h +++ b/global.h @@ -102,6 +102,7 @@ struct Bullet bulletdir.y=bulletpos.y-targ.y; dist=bulletdir.x*bulletdir.x+bulletdir.y*bulletdir.y; dist=sqrt(dist); + bulletdir.x/=dist;bulletdir.y/=dist;dist=1; } void setdir(double rad) { -- cgit v1.2.3