- if(dx0 != 0) {
- if(dx0 < 0) {
- speed_max[RIGHT] = -dx0;
- if(dx1 < 0) {
- // Rocks moving left only. So the RIGHT side of the screen
- speed_min[RIGHT] = -dx1;
- ti[RIGHT] = -(dx0+dx1)/2;
- } else {
- // Rocks moving left and right
- speed_max[LEFT] = dx1;
- ti[RIGHT] = -dx0/2;
- ti[LEFT] = dx1/2;
- }
+ if(dx0 < 0) {
+ speed_max[RIGHT] = -dx0;
+ if(dx1 < 0) {
+ // Rocks moving left only. So the RIGHT side of the screen
+ speed_min[RIGHT] = -dx1;
+ ti[RIGHT] = -(dx0+dx1)/2;