Rename function based on feedback

This commit is contained in:
Niklp 2024-04-11 13:44:29 +02:00
parent 4e40e3400c
commit 104ebd4ee7
No known key found for this signature in database
GPG Key ID: 05D6F5035E66267A
1 changed files with 2 additions and 2 deletions

View File

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