Can't use book while swimming anymore

This commit is contained in:
John 2015-07-01 15:21:28 +03:00
parent 2b02385e51
commit 82d0bc2038

View file

@ -1592,6 +1592,7 @@ class Toon(Avatar.Avatar, ToonHead):
self.getGeomNode().setP(-89.0) self.getGeomNode().setP(-89.0)
self.dropShadow.hide() self.dropShadow.hide()
if self.isLocal(): if self.isLocal():
self.book.obscureButton(1)
self.useSwimControls() self.useSwimControls()
self.nametag3d.setPos(0, -2, 1) self.nametag3d.setPos(0, -2, 1)
self.startBobSwimTask() self.startBobSwimTask()
@ -1644,6 +1645,7 @@ class Toon(Avatar.Avatar, ToonHead):
self.dropShadow.show() self.dropShadow.show()
if self.isLocal(): if self.isLocal():
self.useWalkControls() self.useWalkControls()
self.book.obscureButton(False)
self.nametag3d.setPos(0, 0, self.height + 0.5) self.nametag3d.setPos(0, 0, self.height + 0.5)
Emote.globalEmote.releaseAll(self, 'exitSwim') Emote.globalEmote.releaseAll(self, 'exitSwim')