Skip to content

Commit

Permalink
reset joypad before moving to next specie
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaGupta1 committed Oct 3, 2018
1 parent c92fbe8 commit 915cc10
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions WarIO.lua
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,17 @@ while true do
end

if (IsAlive == false) then
local buttons = {}
buttons["P1 A"] = false
buttons["P1 B"] = false
buttons["P1 Up"] = false
buttons["P1 Down"] = false
buttons["P1 Left"] = false
buttons["P1 Right"] = false
buttons["P1 Start"] = false
buttons["P1 Select"] = false
joypad.set(buttons)

savestate.load("SMB.State")
resetVariables()
if (currentSpecieNumber ~= #genome) then
Expand Down

0 comments on commit 915cc10

Please sign in to comment.