Browse Source

allow gob spectators to send back Instruction maps

Stephen McQuay 5 years ago
parent
commit
39b8a9e5d7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      player.go

+ 1
- 1
player.go View File

@@ -199,7 +199,7 @@ func NewSpectator(id string, ws *websocket.Conn, bw *bandwidth.Bandwidth, encodi
199 199
 // from spectators.
200 200
 func (s *Spectator) Recv() {
201 201
 	for {
202
-		var msgs interface{}
202
+		var msgs map[string]Instruction
203 203
 		err := s.dec.Decode(&msgs)
204 204
 		if err != nil {
205 205
 			log.Printf("%s: %s", s.Id, err)

Loading…
Cancel
Save