We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 739094b commit 1fae6d7Copy full SHA for 1fae6d7
mouse.cc
@@ -335,8 +335,9 @@ void Mouse::set_speed_cursor() {
335
// Create a speed rectangle that's half of the game window dimensions
336
// but with a minimum size of 200x200
337
const TileRect game_rect = gwin->get_game_rect();
338
- const int rect_size
339
- = std::max(200, std::min(game_rect.w, game_rect.h) / 2);
+ const int rect_size = std::max(
+ std::min(200, std::min(game_rect.w, game_rect.h)),
340
+ std::min(game_rect.w, game_rect.h) / 2);
341
const TileRect speed_rect(
342
ax - rect_size / 2, ay - rect_size / 2, rect_size, rect_size);
343
const bool in_speed_rect
0 commit comments