From 61ae1d5e171483b51e3913ee42fc7452f9f34cee Mon Sep 17 00:00:00 2001 From: Dany0 Date: Mon, 2 Feb 2015 21:31:04 +0100 Subject: [PATCH] Fix MODE_FREEAIM We need it because reasons. --- pkg/base/obj_player.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/base/obj_player.lua b/pkg/base/obj_player.lua index 171320b..12b31ae 100644 --- a/pkg/base/obj_player.lua +++ b/pkg/base/obj_player.lua @@ -1134,7 +1134,7 @@ function new_player(settings) -- set camera position if this.alive then client.camera_move_to(this.x, this.y + this.jerkoffs, this.z) - if MODE_FREEAIM then + if MODE_FREEAIM and this.crosshair then local function ang_dist(a, b) return math.atan2(math.sin(a-b), math.cos(a-b)) end