formatting
This commit is contained in:
parent
eff904c5db
commit
845f7cbb6f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user