Stop auto-joining rooms on creation?
Options
Comments
-
Creating a room will also join that room. You can't create rooms without players inside.
So the created room becomes the one you're in.0 -
Ah your comment in my other thread helped solve this issue (Pay attention to the lobby!) But could you explain the difference to me. What is the difference between
OpCreateRoom() and opCreateAndJoinRoom()? It seems kind of redundant to have the second option, if a room is automatically going to be joined anyway right?0 -
The difference is that OpCreateRoom() simply fails when the room exists already.
OpJoinOrCreateRoom() attempts to join the room and creates it if it doesn't exist yet.
OpCreateAndJoinRoom is hopefully a typo on your behalf and not in the API0