fix pattern breaking

This commit is contained in:
Kistaro Windrider 2024-02-16 19:46:37 -08:00
parent 2e7fbb9fd4
commit 8d24c6a0a9
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -1059,7 +1059,6 @@ function ao_splash:update()
end
if (self.d) self.d:update()
if self.fwait <= -32 then
-- TODO: consent screen
mainview=consent_splash.new()
mainview:update()
end
@ -1551,14 +1550,15 @@ function arcade_level:spawn_word()
if not self.pattern then
self.pattern=gen_pattern()
self.pattern_idx = 0
self.next_break = 9 + irnd(9)
self.next_break = 8 + irnd(9)
end
local i, pbk = (self.pattern_idx&3)+1,0
if self.next_break == 0 then
if self.next_break <= 0 then
-- do pattern break
local np = gen_pattern()
i = np[1]==self.pattern[i] and 2 or 1
self.next_break = 9 + irnd(9)
self.pattern=np
self.next_break = 8 + irnd(9)
pbk=3
end
self.pattern_idx = i