Fixed a bug where sometimes new worlds would hide the hud speaker unnecessarily.

This commit is contained in:
Scott Erickson 2014-02-25 12:39:22 -08:00
parent eee434ab51
commit 1b4699556a

View file

@ -66,8 +66,9 @@ module.exports = class HUDView extends View
@clearSpeaker()
onNewWorld: (e) ->
hadThang = @thang
@thang = e.world.thangMap[@thang.id] if @thang
if not @thang
if hadThang and not @thang
@setThang null, null
setThang: (thang, thangType) ->