solved spectator disconnect issue

This commit is contained in:
sm
2014-01-29 22:12:26 -08:00
parent eac39ad9d1
commit bc58ee9165
4 changed files with 45 additions and 7 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ type GameMode interface {
func NewGame(id string, width, height float32, obstacles, tick, maxPoints int, mode string) *game {
g := &game{
id: id,
register: make(chan *player),
register: make(chan *player, maxPlayer),
unregister: make(chan *player, maxPlayer),
projectiles: make(map[*Projectile]bool),
splosions: make(map[*Splosion]bool),