formatting

This commit is contained in:
Mottributo 2023-03-23 23:34:01 +03:00
parent eff904c5db
commit 845f7cbb6f

View File

@ -360,8 +360,8 @@ function startGame(full_start, update_objects) {
// marking it as isFound (making it disabled) in case if. // marking it as isFound (making it disabled) in case if.
for (k = 0; k < canyons.length; k++) { for (k = 0; k < canyons.length; k++) {
if ( if (
canyons[k].x - canyons[k].width / 2 < collectables[i].x canyons[k].x - canyons[k].width / 2 <
&& collectables[i].x &&
canyons[k].x + canyons[k].width / 2 > collectables[i].x canyons[k].x + canyons[k].width / 2 > collectables[i].x
) { ) {
collectables[i].isFound = true; collectables[i].isFound = true;