From 143c45fb26be6867ae52eee6af5800c563da13aa Mon Sep 17 00:00:00 2001 From: Bobhostern Date: Sat, 19 Apr 2014 13:11:15 -0500 Subject: [PATCH 1/2] Update game_state_manager.rb Made previous_game_state work again! --- lib/chingu/game_state_manager.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/chingu/game_state_manager.rb b/lib/chingu/game_state_manager.rb index 120d0fd7..11ff4282 100644 --- a/lib/chingu/game_state_manager.rb +++ b/lib/chingu/game_state_manager.rb @@ -131,6 +131,7 @@ def push_game_state(state, options = {}) # Give the soon-to-be-disabled state a chance to clean up by calling finalize() on it. current_game_state.finalize if current_game_state.respond_to?(:finalize) && options[:finalize] + new_state.previous_game_state = current_game_state if @transitional_game_state && options[:transitional] # If we have a transitional, push that instead, with new_state as first argument @@ -280,4 +281,4 @@ def game_state_instance(state) end end -end \ No newline at end of file +end From 9d14ae5471db933e699642143f90ac3a55b9a252 Mon Sep 17 00:00:00 2001 From: Bobhostern Date: Mon, 21 Apr 2014 07:39:45 -0500 Subject: [PATCH 2/2] Update gfx.rb --- lib/chingu/helpers/gfx.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/chingu/helpers/gfx.rb b/lib/chingu/helpers/gfx.rb index 0d8070f6..befb7387 100644 --- a/lib/chingu/helpers/gfx.rb +++ b/lib/chingu/helpers/gfx.rb @@ -185,7 +185,7 @@ def _stroke_rect(rect, color_a, color_b, color_c, color_d, zorder, mode) $window.draw_line(left, top, color_a, left, bottom, color_b, zorder, mode) $window.draw_line(left, bottom, color_b, right, bottom, color_c, zorder, mode) $window.draw_line(right, bottom, color_c, right, top, color_d, zorder, mode) - $window.draw_line(right, top, color_d, left, top, color_a, zorder, mode) + $window.draw_line(right + 1, top, color_d, left, top, color_a, zorder, mode) # make a COMPLETE rectangle end # @@ -230,4 +230,4 @@ def _walk_arc(from, to, detail, &block) end end -end \ No newline at end of file +end