Skip to content

Commit

Permalink
Clear dudes on pre
Browse files Browse the repository at this point in the history
  • Loading branch information
kettek committed Jul 2, 2024
1 parent b99a717 commit 21ad7c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/game/gamepre.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ func (s *GameStatePre) Begin(g *Game) {
g.equipment = make([]*Equipment, 0)
g.ui.equipmentPanel.SetEquipment(g.equipment)

// Init dudes
g.dudes = make([]*Dude, 0)
g.ui.dudeInfoPanel.SetDude(nil)
g.ui.dudePanel.SetDudes(g.dudes)
g.ui.dudeInfoPanel.equipmentDetails.SetEquipment(nil)

// Init audio tick
g.audioController.PlayRoomTracks()
g.audioController.MuteAll()
Expand Down

0 comments on commit 21ad7c5

Please sign in to comment.