Skip to content

Commit

Permalink
ヘリコプターeventの壁抜けバグ修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yumetodo committed Nov 20, 2015
1 parent 9f32a2b commit b9dd06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Don't_push/Don't_push/source/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ dxle::pointd circular_motion::get_pos() const NOEXCEPT {
}
static void extruded(size_t& fall_frame, dxle::pointi& move_target, const dxle::pointi& move_cause, const dxle::pointi& target_img_size, const int first_y) {
constexpr double g = 9.80665;
if (move_target.x < WINDOW_WIDTH / 4) {
if (move_target.x + target_img_size.x < WINDOW_WIDTH / 4) {
++fall_frame;
move_target.y = first_y + static_cast<int>(g / 2 * fall_frame);
}
Expand Down

0 comments on commit b9dd06f

Please sign in to comment.