avatar: Merged gotoSleep if statement
This commit is contained in:
parent
3880f2049f
commit
736ced4aec
1 changed files with 1 additions and 3 deletions
|
@ -985,9 +985,7 @@ class LocalAvatar(DistributedAvatar.DistributedAvatar, DistributedSmoothNode.Dis
|
||||||
return
|
return
|
||||||
|
|
||||||
def gotoSleep(self):
|
def gotoSleep(self):
|
||||||
if self.noSleep:
|
if not self.sleepFlag and not self.noSleep:
|
||||||
return
|
|
||||||
if not self.sleepFlag:
|
|
||||||
self.b_setAnimState('Sleep', self.animMultiplier)
|
self.b_setAnimState('Sleep', self.animMultiplier)
|
||||||
self.sleepFlag = 1
|
self.sleepFlag = 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue