From 1f04605e58295c4b6c96df39ab2645e9d3ad0ae4 Mon Sep 17 00:00:00 2001 From: h3ndrik Date: Sun, 1 Apr 2012 14:31:50 +0200 Subject: [PATCH] Implement argc (-d) for Player 4 --- sdljpd | Bin 40847 -> 40887 bytes sdljpd.c | 6 +++++- sdljpd.c~ | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sdljpd b/sdljpd index 75060daaf478caa63bfbe727fd1316667e6bfd69..1f7b5bee5714e5944c0ce5fe06cb842c4061edae 100755 GIT binary patch delta 10293 zcmZ`C{d6}S3@yeh zI(Rg(pA}lWsl8Mx!53)dWSgeumRaqh*>)!_$=sDSYxeU!=Z+55@BVSl`Fy_5^F8OD zJ9B4NwTA6%4fAHoCG}Y^Tj$y(eg%6;vT-c4G&$9vg$rpWi;*oc4R(PV>@GfNU?b&O zF(qRKTQb(p2PJHa{9?TK%=(F&*Ss}){!K|woN9|1^w_R<4>!5Owsn(BSd76UH?S;2 zo^{T67q^Mztt4e2UbOT>poBeauvlHcl0E^gSji;KY1(MG5H8oUdgFB^1;UZK8|vn; z{YHy%^Gz+QO5T}ScUBcI|J;=5Vkw}4(tlBS_o@k z$tDZi1GY1S?a3yZEY>I{YPMA#6IU1Dg|rx`(g>*j}(Rz@7|Y zGud}wSAf+**ld;@i@JmD3}JKF#8`_vSGs;hj(2fDwHtJumZC%WybwMigdZHj+d}vu zA$(>Ce}mxJgR$}M*U}})S@Uk>J3-yRu&{ia6zCs;)|6_;i0~W|``ZJ!`d`TdmI)u_ z_#)vj!fhOXOPKCS|2B@#5RM?+$nhz{bSL<|0XLZb$BF1hL^W6VfN*!hRU986On0B( z#qln}2Evm$-a)trVLQiL3HKzN&+#V0w8{N8j-MrLBpmJL#A+gX5g~EBoUn;-$1foI zKS`K&y1$*{KN5~1e3auy2*(m`afG*Vd@td6!i^kHCu}C{_HyD*B6<^1&G9XS zErhE$zKL)GVHd}v2wMqH=6DFY1;`{RnU4_zYoeHB^A(Q-u2?J~ja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`M{~R<;ETYzK zE!SHZQ2dAw`b&juO0C6O_$%op?tyY#UOQWMuoJaw(6)tZELNv}1BC02R%3}pO9Len z+XCroz0qO1bQ7dD$qMPAHFo4I*S%s5++HhjKhR;rol71hwx`Y_U(b%#bct>yWd)7`X~gAL-ICR=^=mHgHV_Tj=fYmPUc=SlooM&{YlO2Mz_*ac= 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"); diff --git a/sdljpd.c~ b/sdljpd.c~ index 4833840..75b5dc1 100644 --- a/sdljpd.c~ +++ b/sdljpd.c~ @@ -559,21 +559,21 @@ void draw_sdl (void) scorebuf = score[1]; sprintf(buf,"%i",scorebuf); text = TTF_RenderText_Blended(font,buf,color); - drect.x = (365) + 65; + drect.x = (250) + 65; SDL_BlitSurface(text,NULL,surface,&drect); SDL_FreeSurface(text); scorebuf = score[2]; sprintf(buf,"%i",scorebuf); text = TTF_RenderText_Blended(font,buf,color); - drect.x = (2*365) + 65; + drect.x = (2*250) + 65; SDL_BlitSurface(text,NULL,surface,&drect); SDL_FreeSurface(text); scorebuf = score[3]; sprintf(buf,"%i",scorebuf); text = TTF_RenderText_Blended(font,buf,color); - drect.x = (3*365) + 65; + drect.x = (3*250) + 65; SDL_BlitSurface(text,NULL,surface,&drect); SDL_Flip(surface);