Skip to content

Commit 3887053

Browse files
committed
Prevent back from restarting homestate
The only noticeable difference was the audio restarting/sometimes changing
1 parent 6cceb5a commit 3887053

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

states/HomeState.lua

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ function HomeState:init()
66
gui[3] = Button(function() gStateMachine:change('SettingsState',true,true) end,'Settings',font100,nil,'centre',980-font100:getHeight('Settings'))
77
end
88

9+
function HomeState:back()
10+
end
11+
912
function HomeState:enter(partial)
1013
if not partial then
1114
if love.math.random(0,1) == 1 then

0 commit comments

Comments
 (0)