It's weird. But I think I found out what is doing it. There is no check to see if the random created gamenumber already exists
So you could actually create a game and get a number that exists, and therefor re-awaken an already closed game. It then looks like 2 people have the same game. Gotta be this.
Out of a 100 million possible numbers created, the chance of it happening is highly unlikely, but it seems the RAND command in php choses to create the same number more often.
I won't put a check on it I think, but just make them go up...so the newest game automatically has a higher number. I didn't do that before out of fear that when the server is doing something and is slow, people could accidentally create the same gamenumber as creating a game takes a little time.
It's weird. But I think I found out what is doing it. There is no check to see if the random created gamenumber already exists
So you could actually create a game and get a number that exists, and therefor re-awaken an already closed game. It then looks like 2 people have the same game. Gotta be this.
Out of a 100 million possible numbers created, the chance of it happening is highly unlikely, but it seems the RAND command in php choses to create the same number more often.
I won't put a check on it I think, but just make them go up...so the newest game automatically has a higher number. I didn't do that before out of fear that when the server is doing something and is slow, people could accidentally create the same gamenumber as creating a game takes a little time.