Rev 116 | Rev 136 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 116 | Rev 130 | ||
|---|---|---|---|
| Line 1347... | Line 1347... | ||
| 1347 | // play the remote opponent's move |
1347 | // play the remote opponent's move |
| 1348 | Board_AppendMove (&the_board, move.source[0], move.source[1], move.target[0], move.target[1], move.promotion_type, NULL); |
1348 | Board_AppendMove (&the_board, move.source[0], move.source[1], move.target[0], move.target[1], move.promotion_type, NULL); |
| 1349 | 1349 | ||
| 1350 | the_board.has_playerchanged = true; // remember players changed |
1350 | the_board.has_playerchanged = true; // remember players changed |
| 1351 | animation_endtime = current_time + ANIMATION_DURATION; // play move animation now |
1351 | animation_endtime = current_time + ANIMATION_DURATION; // play move animation now |
| 1352 | sound_playtime = current_time + ANIMATION_DURATION - 0.1f; // play sound near the end of animation |
- | |
| 1353 | } |
1352 | } |
| 1354 | 1353 | ||
| 1355 | // else the server is acknowledging the local player's move |
1354 | // else the server is acknowledging the local player's move |
| 1356 | else |
1355 | else |
| 1357 | { |
1356 | { |