Gosuplus 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/Gosuplus/statemanager.rb +3 -3
- data/lib/Gosuplus/version.rb +1 -1
- metadata +1 -1
|
@@ -6,15 +6,15 @@ module Gosuplus
|
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
def update
|
|
9
|
-
@states[@index].update
|
|
9
|
+
@states[@index].update if @states.size > 0
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def draw
|
|
13
|
-
@states[@index].draw
|
|
13
|
+
@states[@index].draw if @states.size > 0
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def handle_input(key, type)
|
|
17
|
-
@states[@index].handle_input(key, type)
|
|
17
|
+
@states[@index].handle_input(key, type) if @states.size > 0
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def next
|
data/lib/Gosuplus/version.rb
CHANGED