Double-Fine-Game-Club / pongball

Pongball is a team based multiplayer game blending pong and pinball.
https://forums.doublefine.com/forum/80-pongball/
MIT License
11 stars 17 forks source link

fix client not being assigned a paddle #169

Closed osse101 closed 7 years ago

osse101 commented 7 years ago

int paddleIndex = Mathf.FloorToInt(Random.Range(0, playerPrefabs.Length) ); Was created to give a random paddle colour but was being used as networkID. If server and client had the same random paddleIndex, server would be assigned both paddles and client would get none.

123

Cheeseness commented 7 years ago

Well spotted! :D