[SOLVED] Suspected bug: RoomSnapshot.getObservers() returns occupants

All Union Platform questions, comments, feature requests, and bug reports.

Suspected bug: RoomSnapshot.getObservers() returns occupants  

Postby Natzkeist » Tue 18 Jun 2013 04:11

I found the following code in Orbiter's RoomSnapshot.js:
Code: Select all
net.user1.orbiter.snapshot.RoomSnapshot.prototype.getObservers = function () {
  return this.manifest.occupants.slice();
}

And Reactor most likely does this too in its RoomSnapshot class. Was it an intended behavior?
Natzkeist
 
Posts: 2
Joined: Mon 27 May 2013 06:41

Re: Suspected bug: RoomSnapshot.getObservers() returns occup

Postby colin » Fri 24 Jan 2014 19:47

no, that was not intended behaviour, it's a bug that's fixed in 2.1.1 (shipping soon).
http://factory.user1.net/issues/show/707

and you are correct, the same bug existed in the Reactor codebase, and is also fixed:
http://factory.user1.net/issues/show/706

thank you for the report!

colin
colin
 
Posts: 232
Joined: Mon 17 Oct 2011 18:47


Return to Union Platform

Online

Users browsing this forum: No registered users and 15 guests