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:
parent
2aa62b8e2d
commit
0b89989264
@ -1098,8 +1098,8 @@ function newtitle()
|
|||||||
end
|
end
|
||||||
|
|
||||||
title_screen = {}
|
title_screen = {}
|
||||||
mknew(title_screen, function(t)
|
mknew(title_screen, function(self)
|
||||||
t.a = arcade_level.new{
|
self.a = arcade_level.new{
|
||||||
noscore=true,
|
noscore=true,
|
||||||
max_score=9999,
|
max_score=9999,
|
||||||
wordwait=9999,
|
wordwait=9999,
|
||||||
@ -1137,7 +1137,7 @@ function title_screen:m()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function title_screen:u()
|
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
|
if btnp(1) and self.a.wordremain ~= 0 and not self.pp then
|
||||||
self.a.wordremain=0
|
self.a.wordremain=0
|
||||||
self.pp=true
|
self.pp=true
|
||||||
|
Loading…
Reference in New Issue
Block a user