Skip to content

Commit

Permalink
Give some more scrolling room in package level dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
rollerozxa committed Oct 16, 2024
1 parent 5cb81c6 commit b9317a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/src/menu_pkg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,10 @@ menu_pkg::step(double dt)
this->cam->near = -1.f;
this->cam->far = 1.f;

float max_x = this->pkg.num_levels/9 * _tms.xppcm*4.f*1.2f + 1000;
float max_x = this->pkg.num_levels/9 * _tms.xppcm*4.f*1.2f + 2000;
float min_x = _tms.window_width/2.f - 200.f;
if (this->cam->_position.x < min_x) this->cam->_position.x = min_x;
else if (this->cam->_position.x > max_x) this->cam->_position.x = max_x;

this->cam->_position.x = tclampf(this->cam->_position.x, min_x, max_x);

tms_camera_calculate(this->cam);

Expand Down

0 comments on commit b9317a3

Please sign in to comment.