soundmud / soundrts

A real-time strategy audio game
http://jlpo.free.fr/soundrts
Other
44 stars 32 forks source link

Fix some bugs on the server code #83

Closed thgcode closed 7 years ago

thgcode commented 8 years ago

Here is the commit message. I've not wrote it in the title because it was truncated. bug fixed: The server wasn't removing the clients from the game if they disconnected in the "waiting for the game to start" state. Bug fixed: The server wasn't destroying the game if the organizer disconnected from it abruptly. Bug fixed: In some situations, the server wasn't removing the clients properly if the organizer cancelled the game.

thgcode commented 8 years ago

I wanted to create another pull request for the public games commit (issue #8), but it ended becoming part of this one. Feel free to choose wat you want to merge or suggest something, and sorry for the bad formatting of the code. I tried to follow it but I'm not so sure if I did things right.

soundmud commented 7 years ago

Yes, the [:] were missing in the for loops!