runescape-client: fix the thing
This commit is contained in:
@@ -29,13 +29,13 @@ public final class ObjectSound extends Node {
|
||||
int y;
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1091838848
|
||||
intValue = 1115826247
|
||||
)
|
||||
@Export("x")
|
||||
int x;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -2006873984
|
||||
intValue = -686767343
|
||||
)
|
||||
int field1073;
|
||||
@ObfuscatedName("j")
|
||||
@@ -92,11 +92,11 @@ public final class ObjectSound extends Node {
|
||||
ObjectDefinition obj;
|
||||
|
||||
static {
|
||||
objectSounds = new NodeDeque();
|
||||
objectSounds = new NodeDeque(); // L: 11
|
||||
}
|
||||
|
||||
ObjectSound() {
|
||||
}
|
||||
} // L: 27
|
||||
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedSignature(
|
||||
@@ -105,28 +105,28 @@ public final class ObjectSound extends Node {
|
||||
)
|
||||
@Export("set")
|
||||
void set() {
|
||||
int var1 = this.soundEffectId;
|
||||
ObjectDefinition var2 = this.obj.transform();
|
||||
if (var2 != null) {
|
||||
this.soundEffectId = var2.ambientSoundId;
|
||||
this.field1086 = var2.int4 * 128;
|
||||
this.field1085 = var2.int5;
|
||||
this.field1083 = var2.int6;
|
||||
this.soundEffectIds = var2.soundEffectIds;
|
||||
int var1 = this.soundEffectId; // L: 30
|
||||
ObjectDefinition var2 = this.obj.transform(); // L: 31
|
||||
if (var2 != null) { // L: 32
|
||||
this.soundEffectId = var2.ambientSoundId; // L: 33
|
||||
this.field1086 = var2.int4 * 128; // L: 34
|
||||
this.field1085 = var2.int5; // L: 35
|
||||
this.field1083 = var2.int6; // L: 36
|
||||
this.soundEffectIds = var2.soundEffectIds; // L: 37
|
||||
} else {
|
||||
this.soundEffectId = -1;
|
||||
this.field1086 = 0;
|
||||
this.field1085 = 0;
|
||||
this.field1083 = 0;
|
||||
this.soundEffectIds = null;
|
||||
this.soundEffectId = -1; // L: 40
|
||||
this.field1086 = 0; // L: 41
|
||||
this.field1085 = 0; // L: 42
|
||||
this.field1083 = 0; // L: 43
|
||||
this.soundEffectIds = null; // L: 44
|
||||
}
|
||||
|
||||
if (var1 != this.soundEffectId && this.stream1 != null) {
|
||||
WorldMapManager.pcmStreamMixer.removeSubStream(this.stream1);
|
||||
this.stream1 = null;
|
||||
if (var1 != this.soundEffectId && this.stream1 != null) { // L: 46
|
||||
WorldMapManager.pcmStreamMixer.removeSubStream(this.stream1); // L: 47
|
||||
this.stream1 = null; // L: 48
|
||||
}
|
||||
|
||||
}
|
||||
} // L: 50
|
||||
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedSignature(
|
||||
@@ -134,6 +134,6 @@ public final class ObjectSound extends Node {
|
||||
garbageValue = "725701035"
|
||||
)
|
||||
static final int method1993() {
|
||||
return ViewportMouse.ViewportMouse_x;
|
||||
return ViewportMouse.ViewportMouse_x; // L: 99
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user