aboutsummaryrefslogtreecommitdiff
path: root/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'global.h')
-rw-r--r--global.h1
1 files changed, 1 insertions, 0 deletions
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)
{