Fix MODE_FREEAIM

We need it because reasons.
This commit is contained in:
Dany0 2015-02-02 21:31:04 +01:00
parent 1e407bf779
commit 61ae1d5e17

View File

@ -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