|
@@ -325,7 +325,7 @@ int handler_game_join(int cliId, JsonParser* json) {
|
|
|
free(name);
|
|
|
//Avertit les autres joueurs
|
|
|
add_integer(&reponse, "id", cliId);
|
|
|
- add_string(&reponse, "pos", "1,1");
|
|
|
+ add_string(&reponse, "pos", pos);
|
|
|
notify_player(&game[index], "POST", "game/newplayer", &reponse, cliId);
|
|
|
//Nettoyage
|
|
|
clean_json_encoder(&reponse);
|
|
@@ -803,4 +803,4 @@ int handler_attack_remote_go(int cliId, JsonParser* json) {
|
|
|
pthread_mutex_unlock(&playerMutex[(index * MAXPLAYER) + playerIndex]);
|
|
|
pthread_mutex_unlock(&gameMutex[index]);
|
|
|
return SUCCESS;
|
|
|
-}
|
|
|
+}
|