tavli
diff src/game.cc @ 17:16a420432aa3
pieces on the board
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 28 Jun 2015 23:04:37 +0300 |
parents | d6209903454b |
children | 986c0b76513f |
line diff
1.1 --- a/src/game.cc Sun Jun 28 08:48:25 2015 +0300 1.2 +++ b/src/game.cc Sun Jun 28 23:04:37 2015 +0300 1.3 @@ -8,6 +8,7 @@ 1.4 static void draw_backdrop(); 1.5 1.6 int win_width, win_height; 1.7 +unsigned long cur_time; 1.8 unsigned int sdr_phong, sdr_phong_notex; 1.9 bool wireframe; 1.10 1.11 @@ -52,6 +53,7 @@ 1.12 if(!board.init()) { 1.13 return false; 1.14 } 1.15 + board.setup(); 1.16 1.17 if(!init_scenery()) { 1.18 return false; 1.19 @@ -68,6 +70,7 @@ 1.20 1.21 void game_update(unsigned long time_msec) 1.22 { 1.23 + cur_time = time_msec; 1.24 } 1.25 1.26 void game_display()