Remove duplicated check

This commit is contained in:
Duy Tran Khanh authored and GitHub committed 2022-09-15 21:58:54 +07:00
1 parent d949a3d661
commit 2b17ce6273
1 file changed
-2
-2
View File
@@ -239,8 +239,6 @@ int callback_SurfaceViewController_touchHotbar(CGFloat x, CGFloat y) {
int barX = (physicalWidth / 2) - (barWidth / 2);
if (x < barX || x >= barX + barWidth) return -1;
if (y < barY || x < barX || x >= barX + barWidth) return -1;
return hotbarKeys[(int) MathUtils_map(x, barX, barX + barWidth, 0, 9)];
}