Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int tileZ = currentHL; tileZ < zMapSize; tileZ++){
- Tile aclass30_sub3_2[][] = tileArray[tileZ];
- for(int visibleDistanceX = -FOG; visibleDistanceX <= 0; visibleDistanceX++){
- int highestX = xCameraPositionTile + visibleDistanceX;
- int lowestX = xCameraPositionTile - visibleDistanceX;
- if(highestX >= lowestVisibleX || lowestX < highestVisibleX) {
- for(int visibleDistanceY = -FOG; visibleDistanceY <= 0; visibleDistanceY++) {
- int highestY = yCameraPositionTile + visibleDistanceY;
- int lowestY = yCameraPositionTile - visibleDistanceY;
- if(highestX >= lowestVisibleX) {
- if(highestY >= lowestVisibleY){
- Tile mapBottomLeftTile = aclass30_sub3_2[highestX][highestY];
- if(mapBottomLeftTile != null && mapBottomLeftTile.aBoolean1322){
- /*
- * renders south-west tiles
- */
- renderTileF(mapBottomLeftTile, false);
- }
- }
- if(lowestY < highestVisibleY){
- Tile mapTopLeftTile = aclass30_sub3_2[highestX][lowestY];
- if(mapTopLeftTile != null && mapTopLeftTile.aBoolean1322){
- /*
- * renders north-west tiles?
- */
- renderTileF(mapTopLeftTile, false);
- }
- }
- }
- if(lowestX < highestVisibleX){
- if(highestY >= lowestVisibleY)
- {
- Tile mapBottomRightTile = aclass30_sub3_2[lowestX][highestY];
- if(mapBottomRightTile != null && mapBottomRightTile.aBoolean1322){
- /*
- * renders south-east tiles?
- */
- renderTileF(mapBottomRightTile, false);
- }
- }
- if(lowestY < highestVisibleY)
- {
- Tile mapTopRightTile = aclass30_sub3_2[lowestX][lowestY];
- if(mapTopRightTile != null && mapTopRightTile.aBoolean1322){
- /*
- * renders north-east tiles?
- */
- renderTileF(mapTopRightTile, false);
- }
- }
- }
- if(anInt446 == 0){
- return;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement