Rev 124 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 124 | Rev 130 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | // load the requested FEN game |
36 | // load the requested FEN game |
37 | if (FENFile_Load (load_pathname, fen_string, WCHAR_SIZEOF (fen_string)) |
37 | if (FENFile_Load (load_pathname, fen_string, WCHAR_SIZEOF (fen_string)) |
38 | && Board_Reset (&the_board, fen_string)) |
38 | && Board_Reset (&the_board, fen_string)) |
39 | { |
39 | { |
40 | animation_endtime = current_time + ANIMATION_DURATION; // start with an animation |
40 | animation_endtime = current_time + ANIMATION_DURATION; // start with an animation |
41 | sound_playtime = current_time + ANIMATION_DURATION - 0.1f; // play sound near the end of animation |
- | |
42 | the_board.reevaluate = true; // evaluate the new board |
41 | the_board.reevaluate = true; // evaluate the new board |
43 | the_scene.update = true; // update scene |
42 | the_scene.update = true; // update scene |
44 | } |
43 | } |
45 | else |
44 | else |
46 | { |
45 | { |
Line 61... | Line 60... | ||
61 | if (game_count == 1) |
60 | if (game_count == 1) |
62 | { |
61 | { |
63 | if (PGNFile_LoadGame (&the_board, load_pathname, &games[0])) // then automatically choose the first one |
62 | if (PGNFile_LoadGame (&the_board, load_pathname, &games[0])) // then automatically choose the first one |
64 | { |
63 | { |
65 | animation_endtime = current_time + ANIMATION_DURATION; // start with an animation |
64 | animation_endtime = current_time + ANIMATION_DURATION; // start with an animation |
66 | sound_playtime = current_time + ANIMATION_DURATION - 0.1f; // play sound near the end of animation |
- | |
67 | the_board.reevaluate = true; // evaluate the new board |
65 | the_board.reevaluate = true; // evaluate the new board |
68 | the_scene.update = true; // update scene |
66 | the_scene.update = true; // update scene |
69 | } |
67 | } |
70 | else |
68 | else |
71 | { |
69 | { |