Skip to content

Commit

Permalink
Fix a bug introduced at edf66ef that allowed the player to launch new…
Browse files Browse the repository at this point in the history
… balls while safe mode is on.
  • Loading branch information
wesleywerner committed Nov 12, 2015
1 parent 23c4b67 commit a9979a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/play-state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ function play:launchBall(firstLaunch)
aplay(sounds.launch)
else
-- Launch another ball, or shake the table
if (#pinball.bodies.balls == 0 or play.safeMode > 0) then
if (#pinball.bodies.balls == 0) then
pinball:newBall()
-- Reset tilt and nudges
play.tilt = false
Expand Down

0 comments on commit a9979a6

Please sign in to comment.