mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-20 18:05:13 -06:00
More texture stuff
Separated out Player + NPC rendering
This commit is contained in:
parent
c1efb2a344
commit
ff62177237
129 changed files with 5036 additions and 5147 deletions
|
|
@ -29,7 +29,7 @@ final class TextureOperation30 extends TextureOperation {
|
|||
}
|
||||
}
|
||||
|
||||
final void method157(int var1, DataBuffer var2, boolean var3) {
|
||||
final void decode(int var1, DataBuffer var2) {
|
||||
try {
|
||||
if(var1 == 0) {
|
||||
this.anInt3128 = var2.readUnsignedShort();
|
||||
|
|
@ -39,12 +39,8 @@ final class TextureOperation30 extends TextureOperation {
|
|||
this.aBoolean2375 = var2.readUnsignedByte() == 1;
|
||||
}
|
||||
|
||||
if(!var3) {
|
||||
this.method157(56, null, true);
|
||||
}
|
||||
|
||||
} catch (RuntimeException var5) {
|
||||
throw ClientErrorException.clientError(var5, "fh.A(" + var1 + ',' + (var2 != null?"{...}":"null") + ',' + var3 + ')');
|
||||
throw ClientErrorException.clientError(var5, "fh.A(" + var1 + ',' + (var2 != null?"{...}":"null") + ',' + true + ')');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -66,7 +62,7 @@ final class TextureOperation30 extends TextureOperation {
|
|||
try {
|
||||
int[] var7 = this.aClass114_2382.method1709(var1);
|
||||
if(this.aClass114_2382.aBoolean1580) {
|
||||
int[] var4 = this.method152(0, var1, 32755);
|
||||
int[] var4 = this.method152(0, var1);
|
||||
|
||||
for(int var5 = 0; var5 < Class113.anInt1559; ++var5) {
|
||||
var7[var5] = this.anInt3128 - -(var4[var5] * this.anInt3126 >> 12);
|
||||
|
|
@ -261,13 +257,11 @@ final class TextureOperation30 extends TextureOperation {
|
|||
}
|
||||
}
|
||||
|
||||
final void method158(int var1) {
|
||||
final void postDecode() {
|
||||
try {
|
||||
if(var1 == 16251) {
|
||||
this.anInt3126 = this.anInt3127 - this.anInt3128;
|
||||
}
|
||||
this.anInt3126 = this.anInt3127 - this.anInt3128;
|
||||
} catch (RuntimeException var3) {
|
||||
throw ClientErrorException.clientError(var3, "fh.P(" + var1 + ')');
|
||||
throw ClientErrorException.clientError(var3, "fh.P(" + ')');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue