fix title crash

it should never try to spawn a word. resetting wordwait doesn't help, I need to reset the timer!
This commit is contained in:
Kistaro Windrider 2024-02-19 11:07:19 -08:00
parent 2aa62b8e2d
commit 0b89989264
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -1098,8 +1098,8 @@ function newtitle()
end
title_screen = {}
mknew(title_screen, function(t)
t.a = arcade_level.new{
mknew(title_screen, function(self)
self.a = arcade_level.new{
noscore=true,
max_score=9999,
wordwait=9999,
@ -1137,7 +1137,7 @@ function title_screen:m()
end
function title_screen:u()
self.a.wordwait=999
self.a.wordtimer=9999
if btnp(1) and self.a.wordremain ~= 0 and not self.pp then
self.a.wordremain=0
self.pp=true