Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. for(int tileZ = currentHL; tileZ < zMapSize; tileZ++){
  2. Tile aclass30_sub3_2[][] = tileArray[tileZ];
  3. for(int visibleDistanceX = -FOG; visibleDistanceX <= 0; visibleDistanceX++){
  4. int highestX = xCameraPositionTile + visibleDistanceX;
  5. int lowestX = xCameraPositionTile - visibleDistanceX;
  6. if(highestX >= lowestVisibleX || lowestX < highestVisibleX) {
  7. for(int visibleDistanceY = -FOG; visibleDistanceY <= 0; visibleDistanceY++) {
  8. int highestY = yCameraPositionTile + visibleDistanceY;
  9. int lowestY = yCameraPositionTile - visibleDistanceY;
  10. if(highestX >= lowestVisibleX) {
  11.  
  12. if(highestY >= lowestVisibleY){
  13.  
  14. Tile mapBottomLeftTile = aclass30_sub3_2[highestX][highestY];
  15. if(mapBottomLeftTile != null && mapBottomLeftTile.aBoolean1322){
  16. /*
  17. * renders south-west tiles
  18. */
  19. renderTileF(mapBottomLeftTile, false);
  20. }
  21. }
  22. if(lowestY < highestVisibleY){
  23. Tile mapTopLeftTile = aclass30_sub3_2[highestX][lowestY];
  24. if(mapTopLeftTile != null && mapTopLeftTile.aBoolean1322){
  25. /*
  26. * renders north-west tiles?
  27. */
  28. renderTileF(mapTopLeftTile, false);
  29. }
  30. }
  31. }
  32. if(lowestX < highestVisibleX){
  33. if(highestY >= lowestVisibleY)
  34. {
  35. Tile mapBottomRightTile = aclass30_sub3_2[lowestX][highestY];
  36. if(mapBottomRightTile != null && mapBottomRightTile.aBoolean1322){
  37. /*
  38. * renders south-east tiles?
  39. */
  40. renderTileF(mapBottomRightTile, false);
  41. }
  42. }
  43. if(lowestY < highestVisibleY)
  44. {
  45. Tile mapTopRightTile = aclass30_sub3_2[lowestX][lowestY];
  46. if(mapTopRightTile != null && mapTopRightTile.aBoolean1322){
  47. /*
  48. * renders north-east tiles?
  49. */
  50. renderTileF(mapTopRightTile, false);
  51. }
  52. }
  53. }
  54. if(anInt446 == 0){
  55. return;
  56. }
  57. }
  58. }
  59. }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement