Remove duplicated check
This commit is contained in:
1 parent
d949a3d661
commit
2b17ce6273
1 file changed
-2
@@ -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)];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user