Oops, warnings, I guess they don't auto-cast function references to booleans without grumbling. Good for them I suppose.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4859 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -37,7 +37,7 @@ public class OccupantAdapter
|
|||||||
// from interface OccupantObserver
|
// from interface OccupantObserver
|
||||||
public function occupantEntered (info :OccupantInfo) :void
|
public function occupantEntered (info :OccupantInfo) :void
|
||||||
{
|
{
|
||||||
if (_entered) {
|
if (_entered != null) {
|
||||||
_entered(info);
|
_entered(info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -45,7 +45,7 @@ public class OccupantAdapter
|
|||||||
// from interface OccupantObserver
|
// from interface OccupantObserver
|
||||||
public function occupantLeft (info :OccupantInfo) :void
|
public function occupantLeft (info :OccupantInfo) :void
|
||||||
{
|
{
|
||||||
if (_left) {
|
if (_left != null) {
|
||||||
_left(info);
|
_left(info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -53,7 +53,7 @@ public class OccupantAdapter
|
|||||||
// from interface OccupantObserver
|
// from interface OccupantObserver
|
||||||
public function occupantUpdated (oldinfo :OccupantInfo, newinfo :OccupantInfo) :void
|
public function occupantUpdated (oldinfo :OccupantInfo, newinfo :OccupantInfo) :void
|
||||||
{
|
{
|
||||||
if (_updated) {
|
if (_updated != null) {
|
||||||
_updated(oldinfo, newinfo);
|
_updated(oldinfo, newinfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user