Change warning ignores to use a string identifier (#842)

Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
Simon Proctor
2023-02-16 19:14:51 +00:00
committed by GitHub
parent 7e9078be51
commit 5e8f722c91
3 changed files with 3 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ func _process(_delta):
var beat = int(time * BPM / 60.0)
var seconds = int(time)
var seconds_total = int($Player.stream.get_length())
@warning_ignore(integer_division)
@warning_ignore("integer_division")
$Label.text = str("BEAT: ", beat % BARS + 1, "/", BARS, " TIME: ", seconds / 60, ":", strsec(seconds % 60), " / ", seconds_total / 60, ":", strsec(seconds_total % 60))

View File

@@ -11,7 +11,7 @@ const MIN_DB = 60
var spectrum
func _draw():
@warning_ignore(integer_division)
@warning_ignore("integer_division")
var w = WIDTH / VU_COUNT
var prev_hz = 0
for i in range(1, VU_COUNT + 1):