Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (count <= -cardCount || count >= cardCount) {
- return 0;
- }
- if (x < 0 && x < -factor && x + cardWidth >= 0) {
- return --count;
- }
- if (x < 0 && x < -factor) {
- return processXTraveledAndReturnCount((x += cardWidth), --count);
- }
- if (x < 0) {
- return count;
- }
- if (x > 0 && x > factor && x - cardWidth <= 0) {
- return ++count;
- }
- if (x > 0 && x > factor) {
- return processXTraveledAndReturnCount((x -= cardWidth), ++count);
- }
- if (x > 0) {
- return count;
- }
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement