about summary refs log tree commit diff
path: root/src/game/game.h
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-10-07 15:32:54 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-10-07 15:32:54 +0000
commit982db98faec1ba28ff74fdd594ced77e4197cc02 (patch)
tree6ac32c6bd44dcf11cff6fffd8e7a5488f922e788 /src/game/game.h
parentf055f15ae7ef67069d51251b43c8bda22622018d (diff)
downloadzcatch-982db98faec1ba28ff74fdd594ced77e4197cc02.tar.gz
zcatch-982db98faec1ba28ff74fdd594ced77e4197cc02.zip
added sniperscope.. press F to test
Diffstat (limited to 'src/game/game.h')
-rw-r--r--src/game/game.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/game.h b/src/game/game.h
index 2a35bf97..d3b491fc 100644
--- a/src/game/game.h
+++ b/src/game/game.h
@@ -12,6 +12,11 @@ inline vec2 get_direction(int angle)
 	return vec2(cosf(a), sinf(a));
 }
 
+inline vec2 get_dir(float a)
+{
+	return vec2(cosf(a), sinf(a));
+}
+
 inline float get_angle(vec2 dir)
 {
 	float a = atan(dir.y/dir.x);