Formatting

This commit is contained in:
thedaneeffect committed 2023-01-08 13:23:07 -05:00
1 parent 3a09dac490
commit 83acc98eac
7 files changed
+12 -15

No files matched your search

+1
View File
@@ -1,2 +1,3 @@
# RuneScape #317 Client
Based on [Moparisthebest's release](https://www.moparisthebest.com/downloads/rs317.rar).
-1
View File
@@ -8050,7 +8050,6 @@ public class Game extends GameShell {
}
}
public void startForceMovement(PathingEntity entity) {
if ((entity.forceMoveStartCycle == loopCycle) || (entity.primarySeqID == -1) || (entity.primarySeqDelay != 0) || ((entity.primarySeqCycle + 1) > SeqType.instances[entity.primarySeqID].getFrameDuration(entity.primarySeqFrame))) {
int duration = entity.forceMoveStartCycle - entity.forceMoveEndCycle;
-1
View File
@@ -358,7 +358,6 @@ public class IfType {
public int x;
public int y;
public IfType() {
}
+4 -4
View File
@@ -1478,9 +1478,9 @@ public class Model extends Entity {
*/
public void rotateY90() {
for (int v = 0; v < vertexCount; v++) {
int x_ = vertexX[v];
int tmp = vertexX[v];
vertexX[v] = vertexZ[v];
vertexZ[v] = -x_;
vertexZ[v] = -tmp;
}
}
@@ -1493,9 +1493,9 @@ public class Model extends Entity {
int sin = Model.sin[angle];
int cos = Model.cos[angle];
for (int v = 0; v < vertexCount; v++) {
int y_ = ((vertexY[v] * cos) - (vertexZ[v] * sin)) >> 16;
int tmp = ((vertexY[v] * cos) - (vertexZ[v] * sin)) >> 16;
vertexZ[v] = ((vertexY[v] * sin) + (vertexZ[v] * cos)) >> 16;
vertexY[v] = y_;
vertexY[v] = tmp;
}
}
-1
View File
@@ -115,7 +115,6 @@ public class SeqType {
*/
public int replayStyle = 1;
public SeqType() {
}
-1
View File
@@ -106,7 +106,6 @@ public class Signlink implements Runnable {
}
}
public static synchronized void dnslookup(String dns) {
Signlink.dns = dns;
dnsreq = dns;
+7 -7
View File
@@ -33,7 +33,7 @@ public class PreviewSinCos2D extends JComponent implements Runnable {
@Override
protected void paintComponent(Graphics g) {
g.setColor(new Color(20,40,60));
g.setColor(new Color(20, 40, 60));
g.fillRect(0, 0, getWidth(), getHeight());
int sin = Draw3D.sin[angle];
@@ -41,8 +41,8 @@ public class PreviewSinCos2D extends JComponent implements Runnable {
g.setColor(Color.WHITE);
g.drawString(String.format("angle: %d", angle), 8, 16);
g.drawString(String.format("sin: %d", sin), 8, 16+15);
g.drawString(String.format("cos: %d", cos), 8, 16+15+15);
g.drawString(String.format("sin: %d", sin), 8, 16 + 15);
g.drawString(String.format("cos: %d", cos), 8, 16 + 15 + 15);
int midX = 128;
int midY = 128;
@@ -60,9 +60,9 @@ public class PreviewSinCos2D extends JComponent implements Runnable {
g.drawString("180°", 8, midY);
g.drawString("270°", midX - 12, 28);
Graphics2D g2d = (Graphics2D)g;
Graphics2D g2d = (Graphics2D) g;
g2d.setStroke(new BasicStroke(3));
g.setColor(new Color(122, 134, 255,200));
g.setColor(new Color(122, 134, 255, 200));
int x0 = midX + ((radius * Draw3D.cos[angle]) >> 16);
int y0 = midY + ((radius * Draw3D.sin[angle]) >> 16);
@@ -71,11 +71,11 @@ public class PreviewSinCos2D extends JComponent implements Runnable {
g.drawLine(midX, midY, x0, y0);
// opposite
g.setColor(new Color(0,255,0,200));
g.setColor(new Color(0, 255, 0, 200));
g.drawLine(x0, y0, x0, midY);
// adjacent
g.setColor(new Color(255,0, 0,200));
g.setColor(new Color(255, 0, 0, 200));
g.drawLine(x0, y0, midX, y0);
angle += 2;