Rename function based on feedback
This commit is contained in:
parent
4e40e3400c
commit
104ebd4ee7
4
init.lua
4
init.lua
|
@ -80,7 +80,7 @@ function hangglider.add_fly_check(func)
|
||||||
table.insert(fly_checks, func)
|
table.insert(fly_checks, func)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function can_fly_area(name, pos)
|
local function can_fly_flak(name, pos)
|
||||||
-- Area flak check
|
-- Area flak check
|
||||||
if enable_flak then
|
if enable_flak then
|
||||||
local flak = false
|
local flak = false
|
||||||
|
@ -159,7 +159,7 @@ local function hangglider_step(self, dtime)
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if not can_fly_area(name, pos) then
|
if not can_fly_flak(name, pos) then
|
||||||
if not self.flak_timer then
|
if not self.flak_timer then
|
||||||
self.flak_timer = 0
|
self.flak_timer = 0
|
||||||
shoot_flak_sound(pos)
|
shoot_flak_sound(pos)
|
||||||
|
|
Loading…
Reference in New Issue