Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void method50(int i, int lineColor, int l, int secondaryColor, int j1) {
- int k1 = worldController.method300(j1, l, i);
- if ((k1 ^ 0xffffffffffffffffL) != -1L) {
- int l1 = worldController.method304(j1, l, i, k1);
- int direction = l1 >> 6 & 3;
- int type = l1 & 0x1f;
- int color = lineColor;
- if(k1 > 0)
- color = secondaryColor;
- int mapPixels[] = miniMap.myPixels;
- int pixel = 24624 + l * 4 + (103 - i) * 512 * 4;
- int objectID = k1 >> 14 & 0x7fff;
- ObjectDef object = ObjectDef.forID(objectID);
- if ((object.mapSceneID ^ 0xffffffff) == 0) {
- if (type == 0 || type == 2) {
- if (direction == 0) {
- mapPixels[pixel] = color;
- mapPixels[pixel + 512] = color;
- mapPixels[1024 + pixel] = color;
- mapPixels[1536 + pixel] = color;
- } else if ((direction ^ 0xffffffff) == -2) {
- mapPixels[pixel] = color;
- mapPixels[pixel + 1] = color;
- mapPixels[pixel + 2] = color;
- mapPixels[3 + pixel] = color;
- } else if (direction == 2) {
- mapPixels[pixel - -3] = color;
- mapPixels[3 + (pixel + 512)] = color;
- mapPixels[3 + (pixel + 1024)] = color;
- mapPixels[1536 + (pixel - -3)] = color;
- } else if (direction == 3) {
- mapPixels[pixel + 1536] = color;
- mapPixels[pixel + 1536 + 1] = color;
- mapPixels[2 + pixel + 1536] = color;
- mapPixels[pixel + 1539] = color;
- }
- }
- if(type == 3)
- if(direction == 0)
- mapPixels[pixel] = color;
- else if(direction == 1)
- mapPixels[pixel + 3] = color;
- else if(direction == 2)
- mapPixels[pixel + 3 + 1536] = color;
- else if(direction == 3)
- mapPixels[pixel + 1536] = color;
- if(type == 2)
- if(direction == 3) {
- mapPixels[pixel] = color;
- mapPixels[pixel + 512] = color;
- mapPixels[pixel + 1024] = color;
- mapPixels[pixel + 1536] = color;
- } else if(direction == 0) {
- mapPixels[pixel] = color;
- mapPixels[pixel + 1] = color;
- mapPixels[pixel + 2] = color;
- mapPixels[pixel + 3] = color;
- } else if(direction == 1) {
- mapPixels[pixel + 3] = color;
- mapPixels[pixel + 3 + 512] = color;
- mapPixels[pixel + 3 + 1024] = color;
- mapPixels[pixel + 3 + 1536] = color;
- } else if(direction == 2) {
- mapPixels[pixel + 1536] = color;
- mapPixels[pixel + 1536 + 1] = color;
- mapPixels[pixel + 1536 + 2] = color;
- mapPixels[pixel + 1536 + 3] = color;
- }
- }
- }
- k1 = worldController.method302(j1, l, i);
- if(k1 != 0) {
- int i2 = worldController.method304(j1, l, i, k1);
- int l2 = i2 >> 6 & 3;
- int j3 = i2 & 0x1f;
- int l3 = k1 >> 14 & 0x7fff;
- ObjectDef object = ObjectDef.forID(l3);
- if(object.mapSceneID != -1) {
- IndexedImage scene = mapScenes[object.mapSceneID];
- if(scene != null) {
- int x = (object.anInt744 * 4 - scene.anInt1452) / 2;
- int y = (object.anInt761 * 4 - scene.anInt1453) / 2;
- scene.drawBackground(48 + l * 4 + x, 48 + (104 - i - object.anInt761) * 4 + y);
- }
- } else if(j3 == 9) {
- int color = 0xeeeeee;
- if(k1 > 0)
- color = 0xee0000;
- int mapPixels[] = miniMap.myPixels;
- int pixel = 24624 + l * 4 + (103 - i) * 512 * 4;
- if(l2 == 0 || l2 == 2) {
- mapPixels[pixel + 1536] = color;
- mapPixels[pixel + 1024 + 1] = color;
- mapPixels[pixel + 512 + 2] = color;
- mapPixels[pixel + 3] = color;
- } else {
- mapPixels[pixel] = color;
- mapPixels[pixel + 512 + 1] = color;
- mapPixels[pixel + 1024 + 2] = color;
- mapPixels[pixel + 1536 + 3] = color;
- }
- }
- }
- k1 = worldController.method303(j1, l, i);
- if(k1 != 0) {
- int objectID = k1 >> 14 & 0x7fff;
- ObjectDef object = ObjectDef.forID(objectID);
- if(object.mapSceneID != -1) {
- IndexedImage scene = mapScenes[object.mapSceneID];
- if(scene != null) {
- int x = (object.anInt744 * 4 - scene.anInt1452) / 2;
- int y = (object.anInt761 * 4 - scene.anInt1453) / 2;
- scene.drawBackground(48 + l * 4 + x, 48 + (104 - i - object.anInt761) * 4 + y);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement