Skip to content

Commit 3d1901d

Browse files
author
ShinkoNet
committed
Extend tempo limit from 20 to 30
For mods like tickratechanger, the tempo can go higher than 20. Programs could read the NBS file and translate it to tickrate change commands for the mod.
1 parent fc86a87 commit 3d1901d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/control_draw/control_draw.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ if (a && window = 0) {
966966
if (window = w_dragtempo) {
967967
curs = cr_size_ns
968968
tempodrag += 0.25 * (mouse_yprev - mouse_y) / 3
969-
tempodrag = median(0.25, tempodrag, 20)
969+
tempodrag = median(0.25, tempodrag, 30)
970970
a = tempo
971971
tempo = floor(tempodrag * 4) / 4
972972
if (a != tempo) changed = 1

scripts/load_song/load_song.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if (file_ext = ".nbs") {
4848
// SONG DESCRIPTION
4949
song_desc = buffer_read_string_int()
5050
// TEMPO
51-
tempo = median(0.25, floor((buffer_read_short() / 100) * 4) / 4, 20)
51+
tempo = median(0.25, floor((buffer_read_short() / 100) * 4) / 4, 30)
5252
// AUTOSAVE
5353
a = buffer_read_byte()
5454
autosave = median(0, a, 1)

0 commit comments

Comments
 (0)