Skip to content

Commit

Permalink
Unify both get_fade_point functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Oct 12, 2024
1 parent 9c60305 commit 486e209
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions src/supertux/game_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,6 @@ GameSession::on_escape_press(bool force_quick_respawn)
}
}

Vector
GameSession::get_fade_point() const
{
return get_fade_point(Vector(0.0f, 0.0f));
}

Vector
GameSession::get_fade_point(const Vector& position) const
{
Expand Down
3 changes: 1 addition & 2 deletions src/supertux/game_session.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ class GameSession final : public Screen,

void on_escape_press(bool force_quick_respawn);

Vector get_fade_point() const;
Vector get_fade_point(const Vector& position) const;
Vector get_fade_point(const Vector& position = Vector(0, 0)) const;

public:
bool reset_button;
Expand Down

0 comments on commit 486e209

Please sign in to comment.