Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update game_state_manager.rb #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/chingu/game_state_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -280,4 +281,4 @@ def game_state_instance(state)
end

end
end
end
4 changes: 2 additions & 2 deletions lib/chingu/helpers/gfx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

#
Expand Down Expand Up @@ -230,4 +230,4 @@ def _walk_arc(from, to, detail, &block)
end

end
end
end