From 5753fdd72062555156e5880c19c1999272258d38 Mon Sep 17 00:00:00 2001 From: h3ndrik Date: Sun, 1 Apr 2012 16:34:15 +0200 Subject: [PATCH] Add y to show answer without changing score --- sdljpd | Bin 40887 -> 40919 bytes sdljpd.c | 7 +++++++ sdljpd.c~ | 6 +++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/sdljpd b/sdljpd index 1f7b5bee5714e5944c0ce5fe06cb842c4061edae..765f1f72670885ccacb883e5b511291ad7f5c27f 100755 GIT binary patch delta 10172 zcmZ`<3w%@6{l7Qqg%(wIv@@T591Vt(PqZXx*LM<{KP^5#oN!qnw z;{|Lv3dJcF=eELhD|TwiCVk)tqC*}NLH8(#GvQ?mOslfx|NWhFQ&M&J1LvIY_xCuz z^EKfDKbxjj~le5Vt@hi|vl9gi_?J)drv~h^u!3T{@meV5L8tc|r zH_Mk7N3NSGbl1%k;&p7d{L9ggEPZ{(@~NwnjVHH#{^_A7-+!rLy_T@^dMH! zihwdYfnAC;TP6lcjX}~$EH26%kr5J=jBp7hmlh4X|d8NO86#{1joTUSAu>KPNnza0|ze6Q(-$IU6~#nusw()NuSm!c@|}RU9uN zJeIJ7;|B;+ar;U*{sG}}gl!z(Ntnvqm(B5QgkuR?Ilh%J6};1Dc`cp_n{ zeP7>yC<94^t%Q3y9!Hq&0^d=NqX;Jv?&5d^;bg*X9P0?v{o!lj`0GsIRLqYe;KUUo z=vML7aD1L{8sSwOpCwE;jnBdHM}#L3F5&n%VY+R6HjWPyonj@fs1Cq#$v;hj13*zU#aO2xk-S1d)>uQyQ*|&SS9<0t~EOUQGUZU(!~Z$(asvUma6aiW2?;}LGf`w zd+mi5Lfzl!?R6Jqd;Y1%QYsAzMG|h-F4^u~vj{8OvX9#n3^P^JkU zEIUwHS(#}_s7KIbHzRK%=DFAI`gBc{n^TA;w5(HZW9pb#=d0wy(aXE{;;xO%xTxl>4&RtY#wz)hON3<2-fq;UdfYH*Z*PUr81Yrk;q z_>F*+e9Tm?O?*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laNtOsK= zi*786_(uhwQkupVG)|U{tf{d`#;pV6Fc$41tGO6UTbo>4W!x!>Rb!|@T7|O-A(sQi zU@6OiYS<2-SR}s#$j#A6shRZvH8OdfF*Htc<7|@iSpm=}$$|5E_@%5jnFC7~$w*Qm z1X(h|WA6Gq*sNJ^l2@^9>t|y;3HxfRHDJomPYu{dZ=e~nHsqNDg$o!Sd(z zU{lw6VbdHLH<04TOmZe$@YrmOJ0Rz?_Q&$@aPmFYVGdm0fh0Df3bZgQ>)MP7);W0K z!ttUwf6}zo>;kk6|5dnFXbrq@DO*hDz)dC)`4HD$@S`8MnB*3=bjxgc0^19@lpWrJ zblDGE^2~w9NMK2MxFg0$QBn&l-b!t_VC!tGXvfxaG^pI1hd2ezCNur?fDWvmA0NPr yR?)~RNUP(Xua4*5TX`q<(C diff --git a/sdljpd.c b/sdljpd.c index 080ab69..c92f1e9 100644 --- a/sdljpd.c +++ b/sdljpd.c @@ -867,6 +867,13 @@ int main( int argc, char **argv ) inp = TRUE; break; + /* Show Answer without changing score */ + case SDLK_y: + lockbz = TRUE; + enp = FALSE; + inp = TRUE; + break; + /* Wrong Answer */ case SDLK_DELETE: score[plselect]=score[plselect]-pkt[ypos]; diff --git a/sdljpd.c~ b/sdljpd.c~ index 75b5dc1..080ab69 100644 --- a/sdljpd.c~ +++ b/sdljpd.c~ @@ -615,7 +615,7 @@ int main( int argc, char **argv ) strcpy(xpfp,"level.txt"); - while (( option = getopt(argc, argv, "hf:a:b:c:")) >= 0) + while (( option = getopt(argc, argv, "hf:a:b:c:d:")) >= 0) switch (option) { case 'h': { @@ -639,6 +639,10 @@ int main( int argc, char **argv ) case 'c': strcpy(pl3,optarg); break; + + case 'd': + strcpy(pl4,optarg); + break; } printf("\n \033[36m sdljpd -- jeopady on steroids \n Copyright (c) 2005 Frederick Bullik \n\n This program is free software; you can redistribute it and/or\n modify it under the terms of the GNU General Public License\n as published by the Free Software Foundation; either version 2\n of the License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program; if not, write to the Free Software \n Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\033[m \n\n");