diff --git a/sdljpd b/sdljpd index 48a9013..51ca1b9 100755 Binary files a/sdljpd and b/sdljpd differ diff --git a/sdljpd.c b/sdljpd.c index 080ab69..890cc25 100644 --- a/sdljpd.c +++ b/sdljpd.c @@ -22,10 +22,10 @@ #include #include -#include "SDL.h" -#include "SDL_image.h" -#include "SDL_ttf.h" -#include "SDL_mixer.h" +#include +#include +#include +#include /* Define our booleans */ #define TRUE 1 @@ -404,6 +404,7 @@ void draw_sdl (void) if(solved[countx][county] == 1) strcpy(buf,pl1); if(solved[countx][county] == 2) strcpy(buf,pl2); if(solved[countx][county] == 3) strcpy(buf,pl3); + if(solved[countx][county] == 4) strcpy(buf,pl4); drect.x = (countx*200) + 65; drect.y = drect.y + 23; @@ -862,6 +863,14 @@ int main( int argc, char **argv ) case SDLK_INSERT: score[plselect]=score[plselect]+pkt[ypos]; solved[xpos][ypos] = (plselect + 1); + lockbz = TRUE; + system("./set_led 0 0 0 0"); + enp = FALSE; + inp = TRUE; + break; + + /* Show Answer without changing score */ + case SDLK_y: lockbz = TRUE; enp = FALSE; inp = TRUE; diff --git a/set_led b/set_led index b3c6bdc..108f734 100755 Binary files a/set_led and b/set_led differ