aboutsummaryrefslogtreecommitdiff
path: root/global.h
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-02-27 13:55:11 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-02-27 13:55:11 +0000
commit17276fa13b40614cb682c2afb83717ae06e75e0e (patch)
treed3709753041a9f2cdf98873e1974bc9c4cb8dcf6 /global.h
parent2658fdbdada65e5c6b2db22a4f9738af3106e7a7 (diff)
downloadbullet-lab-remix-17276fa13b40614cb682c2afb83717ae06e75e0e.tar.xz
New level, minor interface changes.
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)
{