diff --git a/init.lua b/init.lua index 57b50fa..6a0a173 100644 --- a/init.lua +++ b/init.lua @@ -80,7 +80,7 @@ function hangglider.add_fly_check(func) table.insert(fly_checks, func) end -local function can_fly_area(name, pos) +local function can_fly_flak(name, pos) -- Area flak check if enable_flak then local flak = false @@ -159,7 +159,7 @@ local function hangglider_step(self, dtime) }) end end - if not can_fly_area(name, pos) then + if not can_fly_flak(name, pos) then if not self.flak_timer then self.flak_timer = 0 shoot_flak_sound(pos)