|
@@ -438,7 +438,7 @@ int handler_player_move(int cliId, JsonParser* json) {
|
|
|
if (ok) {
|
|
|
ini_encoder(&reponse);
|
|
|
add_integer(&reponse, "player", cliId);
|
|
|
- add_string(&reponse, "move", move);
|
|
|
+ add_string(&reponse, "dir", move);
|
|
|
notify_player(&game[index], "POST", "player/position/update", &reponse, -1);
|
|
|
//Si marche sur une mine
|
|
|
if (mine) {
|