mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
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()
|
||||
|
||||
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) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue