wok-next annotate foobillard/stuff/snooker_draw.patch @ rev 20557
Remove *.la files.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 07 16:01:14 2018 +0300 (2018-04-07) |
parents | |
children |
rev | line source |
---|---|
slaxemulator@7500 | 1 Index: src/evaluate_move.c |
slaxemulator@7500 | 2 =================================================================== |
slaxemulator@7500 | 3 --- src/evaluate_move.c (revision 6) |
slaxemulator@7500 | 4 +++ src/evaluate_move.c (working copy) |
slaxemulator@7500 | 5 @@ -602,6 +602,11 @@ |
slaxemulator@7500 | 6 player[act_player].winner=0; |
slaxemulator@7500 | 7 player[other_player].winner=1; |
slaxemulator@7500 | 8 } |
slaxemulator@7500 | 9 + if(player[act_player].score==player[other_player].score) { |
slaxemulator@7500 | 10 + player[act_player].winner=1; |
slaxemulator@7500 | 11 + player[other_player].winner=1; |
slaxemulator@7500 | 12 + } |
slaxemulator@7500 | 13 + |
slaxemulator@7500 | 14 } |
slaxemulator@7500 | 15 |
slaxemulator@7500 | 16 printf("EVAL done\n"); |
slaxemulator@7500 | 17 Index: src/billard3d.c |
slaxemulator@7500 | 18 =================================================================== |
slaxemulator@7500 | 19 --- src/billard3d.c (revision 6) |
slaxemulator@7500 | 20 +++ src/billard3d.c (working copy) |
slaxemulator@7500 | 21 @@ -1760,8 +1760,17 @@ |
slaxemulator@7500 | 22 options_gamemode==options_gamemode_tournament && |
slaxemulator@7500 | 23 (player[0].winner || player[1].winner) ) |
slaxemulator@7500 | 24 { |
slaxemulator@7500 | 25 - tournament_evaluate_last_match( &tournament_state ); |
slaxemulator@7500 | 26 - tournament_state.wait_for_next_match=1; |
slaxemulator@7500 | 27 + if ( player[0].winner == player[1].winner ) |
slaxemulator@7500 | 28 + { // Draw |
slaxemulator@7500 | 29 + restart_game_common(); |
slaxemulator@7500 | 30 + player[act_player].winner=0; |
slaxemulator@7500 | 31 + player[other_player].winner=0; |
slaxemulator@7500 | 32 + } |
slaxemulator@7500 | 33 + else |
slaxemulator@7500 | 34 + { |
slaxemulator@7500 | 35 + tournament_evaluate_last_match( &tournament_state ); |
slaxemulator@7500 | 36 + tournament_state.wait_for_next_match=1; |
slaxemulator@7500 | 37 + } |
slaxemulator@7500 | 38 } |
slaxemulator@7500 | 39 } else { |
slaxemulator@7500 | 40 int old_cueball_ind; |
slaxemulator@7500 | 41 @@ -3654,6 +3663,7 @@ |
slaxemulator@7500 | 42 create_walls( &walls ); |
slaxemulator@7500 | 43 create_scene( &balls ); |
slaxemulator@7500 | 44 g_shot_due=1; |
slaxemulator@7500 | 45 + snooker_state.to_play=SN_PLAY_RED; |
slaxemulator@7500 | 46 } |
slaxemulator@7500 | 47 |
slaxemulator@7500 | 48 |