Fix missing sound
This commit is contained in:
parent
42e4de28b5
commit
f0fc6135b4
1 changed files with 8 additions and 8 deletions
|
|
@ -91,14 +91,6 @@ export class Player extends PlayerBase {
|
||||||
this.center = this.character!.center;
|
this.center = this.character!.center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const remoteCalls = this.objectsPreviouslyInViewArea
|
|
||||||
.map((g) => new RemoteCallsForObject(g.id, g.getRemoteCalls()))
|
|
||||||
.filter((c) => c.calls.length > 0);
|
|
||||||
|
|
||||||
if (remoteCalls.length > 0) {
|
|
||||||
this.queueCommandSend(new RemoteCallsForObjects(remoteCalls));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private handleViewAreaUpdate() {
|
private handleViewAreaUpdate() {
|
||||||
|
|
@ -180,6 +172,14 @@ export class Player extends PlayerBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public stepCommunications(deltaTime: number) {
|
public stepCommunications(deltaTime: number) {
|
||||||
|
const remoteCalls = this.objectsPreviouslyInViewArea
|
||||||
|
.map((g) => new RemoteCallsForObject(g.id, g.getRemoteCalls()))
|
||||||
|
.filter((c) => c.calls.length > 0);
|
||||||
|
|
||||||
|
if (remoteCalls.length > 0) {
|
||||||
|
this.queueCommandSend(new RemoteCallsForObjects(remoteCalls));
|
||||||
|
}
|
||||||
|
|
||||||
if ((this.timeSinceLastMessage += deltaTime) > settings.updateMessageInterval) {
|
if ((this.timeSinceLastMessage += deltaTime) > settings.updateMessageInterval) {
|
||||||
this.handleAnnouncements();
|
this.handleAnnouncements();
|
||||||
this.handleViewAreaUpdate();
|
this.handleViewAreaUpdate();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue