X-Git-Url: https://git.cworth.org/git?p=loudgame;a=blobdiff_plain;f=lg-loa.c;h=4bf623076442ea9d8c9d7e7369fb8a3226f3f355;hp=b18b27d0ff417fb2738792ad4abebcfe028604f7;hb=8666f33e3f4037ecad58d27897eb7ce74aec0685;hpb=b61845704f880755cbfc2574ac1b3eca8d237f20 diff --git a/lg-loa.c b/lg-loa.c index b18b27d..4bf6230 100644 --- a/lg-loa.c +++ b/lg-loa.c @@ -47,9 +47,10 @@ loa_game_move (loa_game_t *game, const char * peer, char *error; if (! loa_board_move (&game->board, x1, y1, x2, y2, &error)) { - loudgame_sendf (&game->lg, peer, "Illegal move: %c%d%c%d", + loudgame_sendf (&game->lg, peer, "Illegal move: %c%d%c%d: %s", 'a' + x1, LOA_BOARD_SIZE - y1, - 'a' + x2, LOA_BOARD_SIZE - y2); + 'a' + x2, LOA_BOARD_SIZE - y2, + error); return FALSE; }