Fixed a bug where sometimes new worlds would hide the hud speaker unnecessarily.
This commit is contained in:
parent
eee434ab51
commit
1b4699556a
1 changed files with 2 additions and 1 deletions
|
@ -66,8 +66,9 @@ module.exports = class HUDView extends View
|
||||||
@clearSpeaker()
|
@clearSpeaker()
|
||||||
|
|
||||||
onNewWorld: (e) ->
|
onNewWorld: (e) ->
|
||||||
|
hadThang = @thang
|
||||||
@thang = e.world.thangMap[@thang.id] if @thang
|
@thang = e.world.thangMap[@thang.id] if @thang
|
||||||
if not @thang
|
if hadThang and not @thang
|
||||||
@setThang null, null
|
@setThang null, null
|
||||||
|
|
||||||
setThang: (thang, thangType) ->
|
setThang: (thang, thangType) ->
|
||||||
|
|
Reference in a new issue