mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 12:23:24 +02:00
Fix number of available player instances being wrong on tablet
This commit is contained in:
parent
ff42715a15
commit
9638b093d8
2 changed files with 8 additions and 0 deletions
|
@ -369,6 +369,10 @@
|
|||
}
|
||||
|
||||
function onMessageReceived(channel, message, sender) {
|
||||
if (channel !== HIFI_RECORDER_CHANNEL) {
|
||||
return;
|
||||
}
|
||||
|
||||
message = JSON.parse(message);
|
||||
if (message.player === scriptUUID) {
|
||||
switch (message.command) {
|
||||
|
|
|
@ -338,6 +338,10 @@
|
|||
// Heartbeat from AC script.
|
||||
var index;
|
||||
|
||||
if (channel !== HIFI_RECORDER_CHANNEL) {
|
||||
return;
|
||||
}
|
||||
|
||||
message = JSON.parse(message);
|
||||
|
||||
index = playerIDs.indexOf(sender);
|
||||
|
|
Loading…
Reference in a new issue