home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_oth / monopoly.lzh / monopoly_source.LZH / f1.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-06  |  33.6 KB  |  1,413 lines

  1.  
  2. /*  f1.c contains functions for monopoly  
  3.     colorpalette funcs,   movetoken()   */
  4.  
  5. #include "mono:defines"
  6. #include "mono:xvariables"
  7.  
  8. VOID putsquare(pen)
  9. USHORT pen;
  10. {
  11. SetAPen(rportinfo, pen);
  12. RectFill(rportinfo, 100, 20, 140, 60);
  13. }
  14.  
  15. VOID fixcolorpot(color)
  16. USHORT color;
  17. {
  18. int colorpot;
  19.  
  20. switch (color)
  21.    {
  22.    case 0:  colorpot=rpinfo.HorizPot;
  23.             break;
  24.    case 1:  colorpot=gpinfo.HorizPot;
  25.             break;
  26.    case 2:  colorpot=bpinfo.HorizPot;
  27.             break;
  28.    }
  29. if (colorpot < 2184)                   colorpot=0;
  30. if ( (colorpot >= 2184)  && (colorpot < 6553)  )  colorpot=1;
  31. if ( (colorpot >= 6553)  && (colorpot < 10922) )  colorpot=2;
  32. if ( (colorpot >= 10922) && (colorpot < 15291) )  colorpot=3;
  33. if ( (colorpot >= 15291) && (colorpot < 19660) )  colorpot=4;
  34. if ( (colorpot >= 19660) && (colorpot < 24029) )  colorpot=5;
  35. if ( (colorpot >= 24029) && (colorpot < 29398) )  colorpot=6;
  36. if ( (colorpot >= 28398) && (colorpot < 32769) )  colorpot=7;
  37. if ( (colorpot >= 32769) && (colorpot < 37136) )  colorpot=8;
  38. if ( (colorpot >= 37136) && (colorpot < 41505) )  colorpot=9;
  39. if ( (colorpot >= 41505) && (colorpot < 45874) )  colorpot=10;
  40. if ( (colorpot >= 45874) && (colorpot < 50243) )  colorpot=11;
  41. if ( (colorpot >= 50243) && (colorpot < 54612) )  colorpot=12;
  42. if ( (colorpot >= 54612) && (colorpot < 58981) )  colorpot=13;
  43. if ( (colorpot >= 58981) && (colorpot < 63350) )  colorpot=14;
  44. if (  colorpot >= 63350)                          colorpot=15;
  45.  
  46. if (color == 0) rcolorpot=colorpot;
  47. if (color == 1) gcolorpot=colorpot;
  48. if (color == 2) bcolorpot=colorpot;
  49.  
  50. if (changetoken0 == TRUE)
  51.    SetRGB4(vport1, 25, rcolorpot, gcolorpot, bcolorpot);
  52.  
  53. if (changetoken1 == TRUE)
  54.    SetRGB4(vport1, 26, rcolorpot, gcolorpot, bcolorpot);
  55.  
  56. if (changetoken2 == TRUE)
  57.    SetRGB4(vport1, 27, rcolorpot, gcolorpot, bcolorpot);
  58.  
  59. if (changetoken3 == TRUE)
  60.    SetRGB4(vport1, 28, rcolorpot, gcolorpot, bcolorpot);
  61. }
  62.  
  63. VOID mixcolors()
  64. {
  65. rcolorpot=rpinfo.HorizPot;
  66. fixcolorpot(0);
  67. gcolorpot=gpinfo.HorizPot;
  68. fixcolorpot(1);
  69. bcolorpot=bpinfo.HorizPot;
  70. fixcolorpot(2);
  71. }
  72.  
  73. VOID do_palgag()
  74. {
  75. switch (gagid)
  76.    {
  77.    case 0:        /*  red gadget   */
  78.            mixcolors();
  79.         break;
  80.    case 1:        /*  green gadget  */
  81.  
  82.             mixcolors();
  83.         break;
  84.    case 2:        /*   blue gadget   */
  85.             mixcolors();
  86.             break;      
  87.    case 3:  endpal=TRUE;
  88.             break;      
  89.    case 4:       /*  restore token colors  */
  90.             SetRGB4(vport1, 25, 15, 0, 0);
  91.             SetRGB4(vport1, 26, 0, 9, 0);
  92.             SetRGB4(vport1, 27, 0, 0, 13);
  93.             SetRGB4(vport1, 28, 15, 0, 15);
  94.             break;     
  95.    case 25: putsquare(25);
  96.             changetoken0=TRUE;
  97.         changetoken1=FALSE;
  98.         changetoken2=FALSE;
  99.         changetoken3=FALSE;
  100.             break;      
  101.    case 26: putsquare(26);
  102.             changetoken0=FALSE;
  103.         changetoken1=TRUE;
  104.         changetoken2=FALSE;
  105.         changetoken3=FALSE; 
  106.             break;      
  107.    case 27: putsquare(27);
  108.             changetoken0=FALSE;
  109.         changetoken1=FALSE;
  110.         changetoken2=TRUE;
  111.         changetoken3=FALSE; 
  112.             break;      
  113.    case 28: putsquare(28);
  114.             changetoken0=FALSE;
  115.         changetoken1=FALSE;
  116.         changetoken2=FALSE;
  117.         changetoken3=TRUE; 
  118.             break;   
  119.    }
  120. }
  121.  
  122. VOID ckpalmsg()
  123. {
  124. ULONG pclass;
  125. USHORT pcode;
  126. pclass=0;
  127. pcode=0;
  128.  
  129. while (infomsg=(struct IntuiMessage *)GetMsg(infowindow->UserPort))
  130.    {
  131.    pclass = infomsg->Class;
  132.    pcode = infomsg->Code;
  133.    if (pclass == GADGETUP)  getID(infomsg);
  134.    ReplyMsg(infomsg);
  135.    if (pclass == GADGETUP)   do_palgag();
  136.    if ( (pclass == RAWKEY) && (pcode == HELP) ) instruction();
  137.    }
  138. }
  139.  
  140. VOID setupchgcol()
  141. {
  142. palintrotext.FrontPen=yellow;
  143. palintrotext.BackPen=0;
  144. palintrotext.DrawMode=JAM1;
  145. palintrotext.LeftEdge=21;
  146. palintrotext.TopEdge=5;
  147. palintrotext.ITextFont=NULL;
  148. palintrotext.IText=(UBYTE *)"ADJUST TOKEN COLORS";
  149. palintrotext.NextText=NULL;
  150.  
  151. paloktext.FrontPen=green;
  152. paloktext.BackPen=0;
  153. paloktext.DrawMode=JAM1;
  154. paloktext.LeftEdge=0;
  155. paloktext.TopEdge=1;
  156. paloktext.ITextFont=NULL;
  157. paloktext.IText=(UBYTE *)"COLORS OK";
  158. paloktext.NextText=NULL;
  159.  
  160. restorepaltext.FrontPen=orange;
  161. restorepaltext.BackPen=0;
  162. restorepaltext.DrawMode=JAM1;
  163. restorepaltext.LeftEdge=0;
  164. restorepaltext.TopEdge=1;
  165. restorepaltext.ITextFont=NULL;
  166. restorepaltext.IText=(UBYTE *)"RESTORE DEFAULT COLORS";
  167. restorepaltext.NextText=NULL;
  168.  
  169. redgagtext.FrontPen=red;
  170. redgagtext.BackPen=0;
  171. redgagtext.DrawMode=JAM1;
  172. redgagtext.LeftEdge=-27;
  173. redgagtext.TopEdge=0;
  174. redgagtext.ITextFont=NULL;
  175. redgagtext.IText=(UBYTE *)"RED";
  176. redgagtext.NextText=NULL;
  177.  
  178. greengagtext.FrontPen=green;
  179. greengagtext.BackPen=0;
  180. greengagtext.DrawMode=JAM1;
  181. greengagtext.LeftEdge=-43;
  182. greengagtext.TopEdge=0;
  183. greengagtext.ITextFont=NULL;
  184. greengagtext.IText=(UBYTE *)"GREEN";
  185. greengagtext.NextText=NULL;
  186.  
  187. bluegagtext.FrontPen=dk_blue;
  188. bluegagtext.BackPen=0;
  189. bluegagtext.DrawMode=JAM1;
  190. bluegagtext.LeftEdge=-35;
  191. bluegagtext.TopEdge=0;
  192. bluegagtext.ITextFont=NULL;
  193. bluegagtext.IText=(UBYTE *)"BLUE";
  194. bluegagtext.NextText=NULL;
  195.  
  196.  
  197.  
  198. /*  first gadget in palette window   */
  199. palc25gag.NextGadget=&palc26gag;
  200. palc25gag.LeftEdge=30;
  201. palc25gag.TopEdge=20;
  202. palc25gag.Width=20;
  203. palc25gag.Height=20;
  204. palc25gag.Flags=GADGHBOX | GADGIMAGE;
  205. palc25gag.Activation=GADGIMMEDIATE | RELVERIFY;
  206. palc25gag.GadgetType=BOOLGADGET;
  207. palc25gag.GadgetRender=(APTR)&image25;
  208. palc25gag.SelectRender=NULL;
  209. palc25gag.GadgetText=NULL;
  210. palc25gag.MutualExclude=NULL;
  211. palc25gag.SpecialInfo=NULL;
  212. palc25gag.GadgetID=25;
  213. palc25gag.UserData=NULL;
  214.  
  215. palc26gag.NextGadget=&palc27gag;
  216. palc26gag.LeftEdge=50;
  217. palc26gag.TopEdge=20;
  218. palc26gag.Width=20;
  219. palc26gag.Height=20;
  220. palc26gag.Flags=GADGHBOX | GADGIMAGE;
  221. palc26gag.Activation=GADGIMMEDIATE | RELVERIFY;
  222. palc26gag.GadgetType=BOOLGADGET;
  223. palc26gag.GadgetRender=(APTR)&image26;
  224. palc26gag.SelectRender=NULL;
  225. palc26gag.GadgetText=NULL;
  226. palc26gag.MutualExclude=NULL;
  227. palc26gag.SpecialInfo=NULL;
  228. palc26gag.GadgetID=26;
  229. palc26gag.UserData=NULL;
  230.  
  231. palc27gag.NextGadget=&palc28gag;
  232. palc27gag.LeftEdge=30;
  233. palc27gag.TopEdge=40;
  234. palc27gag.Width=20;
  235. palc27gag.Height=20;
  236. palc27gag.Flags=GADGHBOX | GADGIMAGE;
  237. palc27gag.Activation=GADGIMMEDIATE | RELVERIFY;
  238. palc27gag.GadgetType=BOOLGADGET;
  239. palc27gag.GadgetRender=(APTR)&image27;
  240. palc27gag.SelectRender=NULL;
  241. palc27gag.GadgetText=NULL;
  242. palc27gag.MutualExclude=NULL;
  243. palc27gag.SpecialInfo=NULL;
  244. palc27gag.GadgetID=27;
  245. palc27gag.UserData=NULL;
  246.  
  247. palc28gag.NextGadget=&redgag;
  248. palc28gag.LeftEdge=50;
  249. palc28gag.TopEdge=40;
  250. palc28gag.Width=20;
  251. palc28gag.Height=20;
  252. palc28gag.Flags=GADGHBOX | GADGIMAGE;
  253. palc28gag.Activation=GADGIMMEDIATE | RELVERIFY;
  254. palc28gag.GadgetType=BOOLGADGET;
  255. palc28gag.GadgetRender=(APTR)&image28;
  256. palc28gag.SelectRender=NULL;
  257. palc28gag.GadgetText=NULL;
  258. palc28gag.MutualExclude=NULL;
  259. palc28gag.SpecialInfo=NULL;
  260. palc28gag.GadgetID=28;
  261. palc28gag.UserData=NULL;
  262.  
  263. redgag.NextGadget=&greengag;
  264. redgag.LeftEdge=48;
  265. redgag.TopEdge=65;
  266. redgag.Width=128;
  267. redgag.Height=10;
  268. redgag.Flags=GADGHCOMP;
  269. redgag.Activation=RELVERIFY | GADGIMMEDIATE;
  270. redgag.GadgetType=PROPGADGET;
  271. redgag.GadgetRender=(APTR)&redknob;
  272. redgag.SelectRender=NULL;
  273. redgag.GadgetText=&redgagtext;
  274. redgag.MutualExclude=NULL;
  275. redgag.SpecialInfo=(APTR)&rpinfo;
  276. redgag.GadgetID=0;
  277. redgag.UserData=NULL;
  278.  
  279. greengag.NextGadget=&bluegag;
  280. greengag.LeftEdge=48;
  281. greengag.TopEdge=80;
  282. greengag.Width=128;
  283. greengag.Height=10;
  284. greengag.Flags=GADGHCOMP;
  285. greengag.Activation=RELVERIFY | GADGIMMEDIATE;
  286. greengag.GadgetType=PROPGADGET;
  287. greengag.GadgetRender=(APTR)&greenknob;
  288. greengag.SelectRender=NULL;
  289. greengag.GadgetText=&greengagtext;
  290. greengag.MutualExclude=NULL;
  291. greengag.SpecialInfo=(APTR)&gpinfo;
  292. greengag.GadgetID=1;
  293. greengag.UserData=NULL;
  294.  
  295. bluegag.NextGadget=&palokgag;
  296. bluegag.LeftEdge=48;
  297. bluegag.TopEdge=95;
  298. bluegag.Width=128;
  299. bluegag.Height=10;
  300. bluegag.Flags=GADGHCOMP;
  301. bluegag.Activation=RELVERIFY | GADGIMMEDIATE;
  302. bluegag.GadgetType=PROPGADGET;
  303. bluegag.GadgetRender=(APTR)&blueknob;
  304. bluegag.SelectRender=NULL;
  305. bluegag.GadgetText=&bluegagtext;
  306. bluegag.MutualExclude=NULL;
  307. bluegag.SpecialInfo=(APTR)&bpinfo;
  308. bluegag.GadgetID=2;
  309. bluegag.UserData=NULL;
  310.  
  311. /*  PropInfo structure template
  312.     not used now 
  313. pinfo.Flags=;
  314. pinfo.HorizPot=;
  315. pinfo.VertPot=;
  316. pinfo.HorizBody=;
  317. pinfo.VertBody=;
  318. pinfo.CWidth=;
  319. pinfo.CHeight=;
  320. pinfo.HPotRes=;
  321. pinfo.VPotRes=;
  322. pinfo.LeftBorder=;
  323. pinfo.TopBordr=;
  324.  
  325. *********************/
  326. rpinfo.Flags=gpinfo.Flags=bpinfo.Flags = FREEHORIZ | AUTOKNOB;
  327. rpinfo.HorizBody=gpinfo.HorizBody=bpinfo.HorizBody = 0x1000;
  328.  
  329. palokgag.NextGadget=&restorepalgag;
  330. palokgag.LeftEdge=59;
  331. palokgag.TopEdge=115;
  332. palokgag.Width=72;
  333. palokgag.Height=10;
  334. palokgag.Flags=GADGHCOMP;
  335. palokgag.Activation=GADGIMMEDIATE | RELVERIFY;
  336. palokgag.GadgetType=BOOLGADGET;
  337. palokgag.GadgetRender=(APTR)&palokborder;
  338. palokgag.SelectRender=NULL;
  339. palokgag.GadgetText=&paloktext;
  340. palokgag.MutualExclude=NULL;
  341. palokgag.SpecialInfo=NULL;
  342. palokgag.GadgetID=3;
  343. palokgag.UserData=NULL;
  344.  
  345. restorepalgag.NextGadget=NULL;
  346. restorepalgag.LeftEdge=7;
  347. restorepalgag.TopEdge=130;
  348. restorepalgag.Width=176;
  349. restorepalgag.Height=10;
  350. restorepalgag.Flags=GADGHCOMP;
  351. restorepalgag.Activation=GADGIMMEDIATE | RELVERIFY;
  352. restorepalgag.GadgetType=BOOLGADGET;
  353. restorepalgag.GadgetRender=(APTR)&restorepalborder;
  354. restorepalgag.SelectRender=NULL;
  355. restorepalgag.GadgetText=&restorepaltext;
  356. restorepalgag.MutualExclude=NULL;
  357. restorepalgag.SpecialInfo=NULL;
  358. restorepalgag.GadgetID=4;
  359. restorepalgag.UserData=NULL;
  360.  
  361. ninfow.LeftEdge=63;
  362. ninfow.TopEdge=29;
  363. ninfow.Width=194;
  364. ninfow.Height=143;
  365. ninfow.DetailPen=white;
  366. ninfow.BlockPen=black;
  367. ninfow.Title=NULL;
  368. ninfow.Flags=SMART_REFRESH | ACTIVATE | BORDERLESS;
  369. ninfow.IDCMPFlags=RAWKEY | GADGETUP;
  370. ninfow.FirstGadget=&palc25gag;
  371.  
  372. VOID changecolors()
  373. {
  374. USHORT hold_line;
  375.  
  376. setupchgcol();
  377.  
  378. if ((infowindow=(struct Window *)OpenWindow(&ninfow))==NULL)  cleanup();
  379. rportinfo=infowindow->RPort;
  380. PrintIText(rportinfo, &palintrotext, 0, 0);
  381.  
  382. line0_text=25;  /*  set colors of tokens   */
  383. for (j=0, hold_line=line0_text; j<SHOW_LINES; j++)
  384.    instructIT[j].IText=instructline[hold_line++];
  385.  
  386. endpal=FALSE;
  387. while (!endpal)
  388.    {
  389.    if (1<<infowindow->UserPort->mp_SigBit)  ckpalmsg();
  390.    }
  391. RemoveGadget(infowindow, &palc25gag);
  392. RemoveGadget(infowindow, &palc26gag);
  393. RemoveGadget(infowindow, &palc27gag);
  394. RemoveGadget(infowindow, &palc28gag);
  395. RemoveGadget(infowindow, &redgag);
  396. RemoveGadget(infowindow, &greengag);
  397. RemoveGadget(infowindow, &bluegag);
  398. RemoveGadget(infowindow, &palokgag);
  399. RemoveGadget(infowindow, &restorepalgag);
  400. CloseWindow(infowindow);
  401. }
  402.  
  403.  
  404.  
  405. VOID movetoken()
  406. {
  407. playerat[nowrolling]=playerat[nowrolling]+dice0+dice1;
  408. if (playerat[nowrolling] > 40)
  409.    {  
  410.    playerat[nowrolling]=playerat[nowrolling]-40;
  411.    eft(BANK, nowrolling, 200);
  412.    passgo();
  413.    }
  414. if (playerat[nowrolling] == 40)
  415.    {  
  416.    playerat[nowrolling]=0;
  417.    }
  418. if (nowrolling == 0)
  419.    {
  420.    switch (playerat[0])
  421.       {
  422.       case 0:   REDX= go[0][0];
  423.                 REDY= go[1][0];
  424.         WaitTOF();
  425.                 DrawGels();
  426.         showpropinfo(0);
  427.             break;
  428.       case 1:   REDX= med[0][0];
  429.                 REDY= med[1][0];
  430.         WaitTOF();
  431.                 DrawGels();
  432.         showpropinfo(1);
  433.             break;
  434.       case 2:   REDX= cc1[0][0];
  435.                 REDY= cc1[1][0];
  436.         WaitTOF();
  437.                 DrawGels();
  438.         showpropinfo(2);
  439.             break;
  440.       case 3:   REDX= bal[0][0];
  441.                 REDY= bal[1][0];
  442.         WaitTOF();
  443.                 DrawGels();
  444.         showpropinfo(3);
  445.             break;
  446.       case 4:   REDX= itax[0][0];
  447.                 REDY= itax[1][0];
  448.         WaitTOF();
  449.                 DrawGels();
  450.         showpropinfo(4);
  451.             break;
  452.       case 5:   REDX= rrr[0][0];
  453.                 REDY= rrr[1][0];
  454.         WaitTOF();
  455.                 DrawGels();
  456.         showpropinfo(5);
  457.             break;
  458.       case 6:   REDX= or[0][0];
  459.                 REDY= or[1][0];
  460.         WaitTOF();
  461.                 DrawGels();
  462.         showpropinfo(6);
  463.             break;
  464.       case 7:   REDX= c1[0][0];
  465.                 REDY= c1[1][0];
  466.         WaitTOF();
  467.                 DrawGels();
  468.         showpropinfo(7);
  469.             break;
  470.       case 8:   REDX= ver[0][0];
  471.                 REDY= ver[1][0];
  472.         WaitTOF();
  473.                 DrawGels();
  474.         showpropinfo(8);
  475.             break;
  476.       case 9:   REDX= con[0][0];
  477.                 REDY= con[1][0];
  478.         WaitTOF();
  479.                 DrawGels();
  480.         showpropinfo(9);
  481.             break;
  482.       case 10:  REDX= vis[0][0];
  483.                 REDY= vis[1][0];
  484.         WaitTOF();
  485.                 DrawGels();
  486.         showpropinfo(10);
  487.             break;
  488.       case 11:  REDX= stc[0][0];
  489.                 REDY= stc[1][0];
  490.         WaitTOF();
  491.                 DrawGels();
  492.         showpropinfo(11);
  493.             break;
  494.       case 12:  REDX= eco[0][0];
  495.                 REDY= eco[1][0];
  496.         WaitTOF();
  497.                 DrawGels();
  498.         showpropinfo(12);
  499.             break;
  500.       case 13:  REDX= sts[0][0];
  501.                 REDY= sts[1][0];
  502.         WaitTOF();
  503.                 DrawGels();
  504.         showpropinfo(13);
  505.             break;
  506.       case 14:  REDX= va[0][0];
  507.                 REDY= va[1][0];
  508.         WaitTOF();
  509.                 DrawGels();
  510.         showpropinfo(14);
  511.             break;
  512.       case 15:  REDX= rrp[0][0];
  513.                 REDY= rrp[1][0];
  514.         WaitTOF();
  515.                 DrawGels();
  516.         showpropinfo(15);
  517.             break;
  518.       case 16:  REDX= stj[0][0];
  519.                 REDY= stj[1][0];
  520.         WaitTOF();
  521.                 DrawGels();
  522.         showpropinfo(16);
  523.             break;
  524.       case 17:  REDX= cc2[0][0];
  525.                 REDY= cc2[1][0];
  526.         WaitTOF();
  527.                 DrawGels();
  528.         showpropinfo(17);
  529.             break;
  530.       case 18:  REDX= tn[0][0];
  531.                 REDY= tn[1][0];
  532.         WaitTOF();
  533.                 DrawGels();
  534.         showpropinfo(18);
  535.             break;
  536.       case 19:  REDX= ny[0][0];
  537.                 REDY= ny[1][0];
  538.         WaitTOF();
  539.                 DrawGels();
  540.         showpropinfo(19);
  541.             break;
  542.       case 20:  REDX= fp[0][0];
  543.                 REDY= fp[1][0];
  544.         WaitTOF();
  545.                 DrawGels();
  546.         showpropinfo(20);
  547.             break;
  548.       case 21:  REDX= ky[0][0];
  549.                 REDY= ky[1][0];
  550.         WaitTOF();
  551.                 DrawGels();
  552.         showpropinfo(21);
  553.             break;
  554.       case 22:  REDX= c2[0][0];
  555.                 REDY= c2[1][0];
  556.         WaitTOF();
  557.                 DrawGels();
  558.         showpropinfo(22);
  559.             break;
  560.       case 23:  REDX= in[0][0];
  561.                 REDY= in[1][0];
  562.         WaitTOF();
  563.                 DrawGels();
  564.         showpropinfo(23);
  565.             break;
  566.       case 24:  REDX= il[0][0];
  567.                 REDY= il[1][0];
  568.         WaitTOF();
  569.                 DrawGels();
  570.         showpropinfo(24);
  571.             break;
  572.       case 25:  REDX= rrb[0][0];
  573.                 REDY= rrb[1][0];
  574.         WaitTOF();
  575.                 DrawGels();
  576.         showpropinfo(25);
  577.             break;
  578.       case 26:  REDX= at[0][0];
  579.                 REDY= at[1][0];
  580.         WaitTOF();
  581.                 DrawGels();
  582.         showpropinfo(26);
  583.             break;
  584.       case 27:  REDX= ven[0][0];
  585.                 REDY= ven[1][0];
  586.         WaitTOF();
  587.                 DrawGels();
  588.         showpropinfo(27);
  589.             break;
  590.       case 28:  REDX= ww[0][0];
  591.                 REDY= ww[1][0];
  592.         WaitTOF();
  593.                 DrawGels();
  594.         showpropinfo(28);
  595.             break;
  596.       case 29:  REDX= mar[0][0];
  597.                 REDY= mar[1][0];
  598.         WaitTOF();
  599.                 DrawGels();
  600.         showpropinfo(29);
  601.             break;
  602.       case 30:  REDX= gtj[0][0];
  603.                 REDY= gtj[1][0];
  604.         WaitTOF();
  605.                 DrawGels();
  606.         showpropinfo(30);
  607.         sendtojail();
  608.             break;
  609.       case 31:  REDX= pac[0][0];
  610.                 REDY= pac[1][0];
  611.         WaitTOF();
  612.                 DrawGels();
  613.         showpropinfo(31);
  614.             break;
  615.       case 32:  REDX= nc[0][0];
  616.                 REDY= nc[1][0];
  617.         WaitTOF();
  618.                 DrawGels();
  619.         showpropinfo(32);
  620.             break;
  621.       case 33:  REDX= cc3[0][0];
  622.                 REDY= cc3[1][0];
  623.         WaitTOF();
  624.                 DrawGels();
  625.         showpropinfo(33);
  626.             break;
  627.       case 34:  REDX= pen[0][0];
  628.                 REDY= pen[1][0];
  629.         WaitTOF();
  630.                 DrawGels();
  631.         showpropinfo(34);
  632.             break;
  633.       case 35:  REDX= rrs[0][0];
  634.                 REDY= rrs[1][0];
  635.         WaitTOF();
  636.                 DrawGels();
  637.         showpropinfo(35);
  638.             break;
  639.       case 36:  REDX= c3[0][0];
  640.                 REDY= c3[1][0];
  641.         WaitTOF();
  642.                 DrawGels();
  643.         showpropinfo(36);
  644.             break;
  645.       case 37:  REDX= pp[0][0];
  646.                 REDY= pp[1][0];
  647.         WaitTOF();
  648.                 DrawGels();
  649.         showpropinfo(37);
  650.             break;
  651.       case 38:  REDX= ptax[0][0];
  652.                 REDY= ptax[1][0];
  653.         WaitTOF();
  654.                 DrawGels();
  655.         showpropinfo(38);
  656.             break;
  657.       case 39:  REDX= bw[0][0];
  658.                 REDY= bw[1][0];
  659.         WaitTOF();
  660.                 DrawGels();
  661.         showpropinfo(39);
  662.             break;
  663.       }
  664.    }
  665. if (nowrolling == 1)
  666.    {
  667.    switch (playerat[1])
  668.       {
  669.       case 0:   GREENX= go[0][1];
  670.                 GREENY= go[1][1];
  671.                 WaitTOF();
  672.                 DrawGels();
  673.                 showpropinfo(0);
  674.             break;
  675.       case 1:   GREENX= med[0][1];
  676.                 GREENY= med[1][1];
  677.         WaitTOF();
  678.                 DrawGels();
  679.         showpropinfo(1);
  680.             break;
  681.       case 2:   GREENX= cc1[0][1];
  682.                 GREENY= cc1[1][1];
  683.         WaitTOF();
  684.                 DrawGels();
  685.         showpropinfo(2);
  686.             break;
  687.       case 3:   GREENX= bal[0][1];
  688.                 GREENY= bal[1][1];
  689.         WaitTOF();
  690.                 DrawGels();
  691.         showpropinfo(3);
  692.             break;
  693.       case 4:   GREENX= itax[0][1];
  694.                 GREENY= itax[1][1];
  695.         WaitTOF();
  696.                 DrawGels();
  697.         showpropinfo(4);
  698.             break;
  699.       case 5:   GREENX= rrr[0][1];
  700.                 GREENY= rrr[1][1];
  701.         WaitTOF();
  702.                 DrawGels();
  703.         showpropinfo(5);
  704.             break;
  705.       case 6:   GREENX= or[0][1];
  706.                 GREENY= or[1][1];
  707.         WaitTOF();
  708.                 DrawGels();
  709.         showpropinfo(6);
  710.             break;
  711.       case 7:   GREENX= c1[0][1];
  712.                 GREENY= c1[1][1];
  713.         WaitTOF();
  714.                 DrawGels();
  715.         showpropinfo(7);
  716.             break;
  717.       case 8:   GREENX= ver[0][1];
  718.                 GREENY= ver[1][1];
  719.         WaitTOF();
  720.                 DrawGels();
  721.         showpropinfo(8);
  722.             break;
  723.       case 9:   GREENX= con[0][1];
  724.                 GREENY= con[1][1];
  725.         WaitTOF();
  726.                 DrawGels();
  727.                 showpropinfo(9);
  728.             break;
  729.       case 10:  GREENX= vis[0][1];
  730.                 GREENY= vis[1][1];
  731.         WaitTOF();
  732.                 DrawGels();
  733.         showpropinfo(10);
  734.             break;
  735.       case 11:  GREENX= stc[0][1];
  736.                 GREENY= stc[1][1];
  737.         WaitTOF();
  738.                 DrawGels();
  739.         showpropinfo(11);
  740.             break;
  741.       case 12:  GREENX= eco[0][1];
  742.                 GREENY= eco[1][1];
  743.         WaitTOF();
  744.                 DrawGels();
  745.         showpropinfo(12);
  746.             break;
  747.       case 13:  GREENX= sts[0][1];
  748.                 GREENY= sts[1][1];
  749.         WaitTOF();
  750.                 DrawGels();
  751.         showpropinfo(13);
  752.             break;
  753.       case 14:  GREENX= va[0][1];
  754.                 GREENY= va[1][1];
  755.         WaitTOF();
  756.                 DrawGels();
  757.         showpropinfo(14);
  758.             break;
  759.       case 15:  GREENX= rrp[0][1];
  760.                 GREENY= rrp[1][1];
  761.         WaitTOF();
  762.                 DrawGels();
  763.         showpropinfo(15);
  764.             break;
  765.       case 16:  GREENX= stj[0][1];
  766.                 GREENY= stj[1][1];
  767.         WaitTOF();
  768.                 DrawGels();
  769.         showpropinfo(16);
  770.             break;
  771.       case 17:  GREENX= cc2[0][1];
  772.                 GREENY= cc2[1][1];
  773.         WaitTOF();
  774.                 DrawGels();
  775.         showpropinfo(17);
  776.             break;
  777.       case 18:  GREENX= tn[0][1];
  778.                 GREENY= tn[1][1];
  779.         WaitTOF();
  780.                 DrawGels();
  781.         showpropinfo(18);
  782.             break;
  783.       case 19:  GREENX= ny[0][1];
  784.                 GREENY= ny[1][1];
  785.         WaitTOF();
  786.                 DrawGels();
  787.         showpropinfo(19);
  788.             break;
  789.       case 20:  GREENX= fp[0][1];
  790.                 GREENY= fp[1][1];
  791.         WaitTOF();
  792.                 DrawGels();
  793.         showpropinfo(20);
  794.             break;
  795.       case 21:  GREENX= ky[0][1];
  796.                 GREENY= ky[1][1];
  797.         WaitTOF();
  798.                 DrawGels();
  799.                 showpropinfo(21);
  800.             break;
  801.       case 22:  GREENX= c2[0][1];
  802.                 GREENY= c2[1][1];
  803.         WaitTOF();
  804.                 DrawGels();
  805.         showpropinfo(22);
  806.             break;
  807.       case 23:  GREENX= in[0][1];
  808.                 GREENY= in[1][1];
  809.         WaitTOF();
  810.                 DrawGels();
  811.         showpropinfo(23);
  812.             break;
  813.       case 24:  GREENX= il[0][1];
  814.                 GREENY= il[1][1];
  815.         WaitTOF();
  816.                 DrawGels();
  817.         showpropinfo(24);
  818.             break;
  819.       case 25:  GREENX= rrb[0][1];
  820.                 GREENY= rrb[1][1];
  821.         WaitTOF();
  822.                 DrawGels();
  823.                 showpropinfo(25);
  824.             break;
  825.       case 26:  GREENX= at[0][1];
  826.                 GREENY= at[1][1];
  827.         WaitTOF();
  828.                 DrawGels();
  829.         showpropinfo(26);
  830.             break;
  831.       case 27:  GREENX= ven[0][1];
  832.                 GREENY= ven[1][1];
  833.         WaitTOF();
  834.                 DrawGels();
  835.         showpropinfo(27);
  836.             break;
  837.       case 28:  GREENX= ww[0][1];
  838.                 GREENY= ww[1][1];
  839.         WaitTOF();
  840.                 DrawGels();
  841.         showpropinfo(28);
  842.             break;
  843.       case 29:  GREENX= mar[0][1];
  844.                 GREENY= mar[1][1];
  845.         WaitTOF();
  846.                 DrawGels();
  847.         showpropinfo(29);
  848.             break;
  849.       case 30:  GREENX= gtj[0][1];
  850.                 GREENY= gtj[1][1];
  851.         WaitTOF();
  852.                 DrawGels();
  853.         showpropinfo(30);
  854.         sendtojail();
  855.             break;
  856.       case 31:  GREENX= pac[0][1];
  857.                 GREENY= pac[1][1];
  858.         WaitTOF();
  859.                 DrawGels();
  860.         showpropinfo(31);
  861.             break;
  862.       case 32:  GREENX= nc[0][1];
  863.                 GREENY= nc[1][1];
  864.         WaitTOF();
  865.                 DrawGels();
  866.         showpropinfo(32);
  867.             break;
  868.       case 33:  GREENX= cc3[0][1];
  869.                 GREENY= cc3[1][1];
  870.         WaitTOF();
  871.                 DrawGels();
  872.         showpropinfo(33);
  873.             break;
  874.       case 34:  GREENX= pen[0][1];
  875.                 GREENY= pen[1][1];
  876.         WaitTOF();
  877.                 DrawGels();
  878.         showpropinfo(34);
  879.             break;
  880.       case 35:  GREENX= rrs[0][1];
  881.                 GREENY= rrs[1][1];
  882.         WaitTOF();
  883.                 DrawGels();
  884.         showpropinfo(35);
  885.             break;
  886.       case 36:  GREENX= c3[0][1];
  887.                 GREENY= c3[1][1];
  888.         WaitTOF();
  889.                 DrawGels();
  890.         showpropinfo(36);
  891.             break;
  892.       case 37:  GREENX= pp[0][1];
  893.                 GREENY= pp[1][1];
  894.         WaitTOF();
  895.                 DrawGels();
  896.         showpropinfo(37);
  897.             break;
  898.       case 38:  GREENX= ptax[0][1];
  899.                 GREENY= ptax[1][1];
  900.         WaitTOF();
  901.                 DrawGels();
  902.         showpropinfo(38);
  903.             break;
  904.       case 39:  GREENX= bw[0][1];
  905.                 GREENY= bw[1][1];
  906.         WaitTOF();
  907.                 DrawGels();
  908.         showpropinfo(39);
  909.             break;
  910.       }
  911.    }
  912. if (nowrolling == 2)
  913.    {
  914.    switch (playerat[2])
  915.       {
  916.       case 0:   BLUEX= go[0][2];
  917.                 BLUEY= go[1][2];
  918.         WaitTOF();
  919.                 DrawGels();
  920.         showpropinfo(0);
  921.             break;
  922.       case 1:   BLUEX= med[0][2];
  923.                 BLUEY= med[1][2];
  924.         WaitTOF();
  925.                 DrawGels();
  926.         showpropinfo(1);
  927.             break;
  928.       case 2:   BLUEX= cc1[0][2];
  929.                 BLUEY= cc1[1][2];
  930.         WaitTOF();
  931.                 DrawGels();
  932.         showpropinfo(2);
  933.             break;
  934.       case 3:   BLUEX= bal[0][2];
  935.                 BLUEY= bal[1][2];
  936.         WaitTOF();
  937.                 DrawGels();
  938.         showpropinfo(3);
  939.             break;
  940.       case 4:   BLUEX= itax[0][2];
  941.                 BLUEY= itax[1][2];
  942.         WaitTOF();
  943.                 DrawGels();
  944.         showpropinfo(4);
  945.             break;
  946.       case 5:   BLUEX= rrr[0][2];
  947.                 BLUEY= rrr[1][2];
  948.         WaitTOF();
  949.                 DrawGels();
  950.         showpropinfo(5);
  951.             break;
  952.       case 6:   BLUEX= or[0][2];
  953.                 BLUEY= or[1][2];
  954.         WaitTOF();
  955.                 DrawGels();
  956.         showpropinfo(6);
  957.             break;
  958.       case 7:   BLUEX= c1[0][2];
  959.                 BLUEY= c1[1][2];
  960.         WaitTOF();
  961.                 DrawGels();
  962.         showpropinfo(7);
  963.             break;
  964.       case 8:   BLUEX= ver[0][2];
  965.                 BLUEY= ver[1][2];
  966.         WaitTOF();
  967.                 DrawGels();
  968.         showpropinfo(8);
  969.             break;
  970.       case 9:   BLUEX= con[0][2];
  971.                 BLUEY= con[1][2];
  972.         WaitTOF();
  973.                 DrawGels();
  974.         showpropinfo(9);
  975.             break;
  976.       case 10:  BLUEX= vis[0][2];
  977.                 BLUEY= vis[1][2];
  978.         WaitTOF();
  979.                 DrawGels();
  980.         showpropinfo(10);
  981.             break;
  982.       case 11:  BLUEX= stc[0][2];
  983.                 BLUEY= stc[1][2];
  984.         WaitTOF();
  985.                 DrawGels();
  986.         showpropinfo(11);
  987.             break;
  988.       case 12:  BLUEX= eco[0][2];
  989.                 BLUEY= eco[1][2];
  990.         WaitTOF();
  991.                 DrawGels();
  992.         showpropinfo(12);
  993.             break;
  994.       case 13:  BLUEX= sts[0][2];
  995.                 BLUEY= sts[1][2];
  996.         WaitTOF();
  997.                 DrawGels();
  998.         showpropinfo(13);
  999.             break;
  1000.       case 14:  BLUEX= va[0][2];
  1001.                 BLUEY= va[1][2];
  1002.         WaitTOF();
  1003.                 DrawGels();
  1004.         showpropinfo(14);
  1005.             break;
  1006.       case 15:  BLUEX= rrp[0][2];
  1007.                 BLUEY= rrp[1][2];
  1008.         WaitTOF();
  1009.                 DrawGels();
  1010.         showpropinfo(15);
  1011.             break;
  1012.       case 16:  BLUEX= stj[0][2];
  1013.                 BLUEY= stj[1][2];
  1014.         WaitTOF();
  1015.                 DrawGels();
  1016.         showpropinfo(16);
  1017.             break;
  1018.       case 17:  BLUEX= cc2[0][2];
  1019.                 BLUEY= cc2[1][2];
  1020.         WaitTOF();
  1021.                 DrawGels();
  1022.         showpropinfo(17);
  1023.             break;
  1024.       case 18:  BLUEX= tn[0][2];
  1025.                 BLUEY= tn[1][2];
  1026.         WaitTOF();
  1027.                 DrawGels();
  1028.         showpropinfo(18);
  1029.             break;
  1030.       case 19:  BLUEX= ny[0][2];
  1031.                 BLUEY= ny[1][2];
  1032.         WaitTOF();
  1033.                 DrawGels();
  1034.         showpropinfo(19);
  1035.             break;
  1036.       case 20:  BLUEX= fp[0][2];
  1037.                 BLUEY= fp[1][2];
  1038.         WaitTOF();
  1039.                 DrawGels();
  1040.         showpropinfo(20);
  1041.             break;
  1042.       case 21:  BLUEX= ky[0][2];
  1043.                 BLUEY= ky[1][2];
  1044.         WaitTOF();
  1045.                 DrawGels();
  1046.         showpropinfo(21);
  1047.             break;
  1048.       case 22:  BLUEX= c2[0][2];
  1049.                 BLUEY= c2[1][2];
  1050.         WaitTOF();
  1051.                 DrawGels();
  1052.         showpropinfo(22);
  1053.             break;
  1054.       case 23:  BLUEX= in[0][2];
  1055.                 BLUEY= in[1][2];
  1056.         WaitTOF();
  1057.                 DrawGels();
  1058.         showpropinfo(23);
  1059.             break;
  1060.       case 24:  BLUEX= il[0][2];
  1061.                 BLUEY= il[1][2];
  1062.         WaitTOF();
  1063.                 DrawGels();
  1064.         showpropinfo(24);
  1065.             break;
  1066.       case 25:  BLUEX= rrb[0][2];
  1067.                 BLUEY= rrb[1][2];
  1068.         WaitTOF();
  1069.                 DrawGels();
  1070.         showpropinfo(25);
  1071.             break;
  1072.       case 26:  BLUEX= at[0][2];
  1073.                 BLUEY= at[1][2];
  1074.         WaitTOF();
  1075.                 DrawGels();
  1076.         showpropinfo(26);
  1077.             break;
  1078.       case 27:  BLUEX= ven[0][2];
  1079.                 BLUEY= ven[1][2];
  1080.         WaitTOF();
  1081.                 DrawGels();
  1082.         showpropinfo(27);
  1083.             break;
  1084.       case 28:  BLUEX= ww[0][2];
  1085.                 BLUEY= ww[1][2];
  1086.         WaitTOF();
  1087.                 DrawGels();
  1088.         showpropinfo(28);
  1089.             break;
  1090.       case 29:  BLUEX= mar[0][2];
  1091.                 BLUEY= mar[1][2];
  1092.         WaitTOF();
  1093.                 DrawGels();
  1094.         showpropinfo(29);
  1095.             break;
  1096.       case 30:  BLUEX= gtj[0][2];
  1097.                 BLUEY= gtj[1][2];
  1098.         WaitTOF();
  1099.                 DrawGels();
  1100.         showpropinfo(30);
  1101.         sendtojail();
  1102.             break;
  1103.       case 31:  BLUEX= pac[0][2];
  1104.                 BLUEY= pac[1][2];
  1105.         WaitTOF();
  1106.                 DrawGels();
  1107.         showpropinfo(31);
  1108.             break;
  1109.       case 32:  BLUEX= nc[0][2];
  1110.                 BLUEY= nc[1][2];
  1111.         WaitTOF();
  1112.                 DrawGels();
  1113.         showpropinfo(32);
  1114.             break;
  1115.       case 33:  BLUEX= cc3[0][2];
  1116.                 BLUEY= cc3[1][2];
  1117.         WaitTOF();
  1118.                 DrawGels();
  1119.         showpropinfo(33);
  1120.             break;
  1121.       case 34:  BLUEX= pen[0][2];
  1122.                 BLUEY= pen[1][2];
  1123.         WaitTOF();
  1124.                 DrawGels();
  1125.         showpropinfo(34);
  1126.             break;
  1127.       case 35:  BLUEX= rrs[0][2];
  1128.                 BLUEY= rrs[1][2];
  1129.         WaitTOF();
  1130.                 DrawGels();
  1131.         showpropinfo(35);
  1132.             break;
  1133.       case 36:  BLUEX= c3[0][2];
  1134.                 BLUEY= c3[1][2];
  1135.         WaitTOF();
  1136.                 DrawGels();
  1137.         showpropinfo(36);
  1138.             break;
  1139.       case 37:  BLUEX= pp[0][2];
  1140.                 BLUEY= pp[1][2];
  1141.         WaitTOF();
  1142.                 DrawGels();
  1143.         showpropinfo(37);
  1144.             break;
  1145.       case 38:  BLUEX= ptax[0][2];
  1146.                 BLUEY= ptax[1][2];
  1147.         WaitTOF();
  1148.                 DrawGels();
  1149.         showpropinfo(38);
  1150.             break;
  1151.       case 39:  BLUEX= bw[0][2];
  1152.                 BLUEY= bw[1][2];
  1153.         WaitTOF();
  1154.                 DrawGels();
  1155.         showpropinfo(39);
  1156.             break;
  1157.       }
  1158.    }
  1159. if (nowrolling == 3)
  1160.    {
  1161.    switch (playerat[3])
  1162.       {
  1163.       case 0:   YELLOWX= go[0][3];
  1164.                 YELLOWY= go[1][3];
  1165.         WaitTOF();
  1166.                 DrawGels();
  1167.         showpropinfo(0);
  1168.             break;
  1169.       case 1:   YELLOWX= med[0][3];
  1170.                 YELLOWY= med[1][3];
  1171.         WaitTOF();
  1172.                 DrawGels();
  1173.         showpropinfo(1);
  1174.             break;
  1175.       case 2:   YELLOWX= cc1[0][3];
  1176.                 YELLOWY= cc1[1][3];
  1177.         WaitTOF();
  1178.                 DrawGels();
  1179.         showpropinfo(2);
  1180.             break;
  1181.       case 3:   YELLOWX= bal[0][3];
  1182.                 YELLOWY= bal[1][3];
  1183.         WaitTOF();
  1184.                 DrawGels();
  1185.         showpropinfo(3);
  1186.             break;
  1187.       case 4:   YELLOWX= itax[0][3];
  1188.                 YELLOWY= itax[1][3];
  1189.         WaitTOF();
  1190.                 DrawGels();
  1191.         showpropinfo(4);
  1192.             break;
  1193.       case 5:   YELLOWX= rrr[0][3];
  1194.                 YELLOWY= rrr[1][3];
  1195.         WaitTOF();
  1196.                 DrawGels();
  1197.         showpropinfo(5);
  1198.             break;
  1199.       case 6:   YELLOWX= or[0][3];
  1200.                 YELLOWY= or[1][3];
  1201.         WaitTOF();
  1202.                 DrawGels();
  1203.         showpropinfo(6);
  1204.             break;
  1205.       case 7:   YELLOWX= c1[0][3];
  1206.                 YELLOWY= c1[1][3];
  1207.         WaitTOF();
  1208.                 DrawGels();
  1209.         showpropinfo(7);
  1210.             break;
  1211.       case 8:   YELLOWX= ver[0][3];
  1212.                 YELLOWY= ver[1][3];
  1213.         WaitTOF();
  1214.                 DrawGels();
  1215.         showpropinfo(8);
  1216.             break;
  1217.       case 9:   YELLOWX= con[0][3];
  1218.                 YELLOWY= con[1][3];
  1219.         WaitTOF();
  1220.                 DrawGels();
  1221.         showpropinfo(9);
  1222.             break;
  1223.       case 10:  YELLOWX= vis[0][3];
  1224.                 YELLOWY= vis[1][3];
  1225.         WaitTOF();
  1226.                 DrawGels();
  1227.         showpropinfo(10);
  1228.             break;
  1229.       case 11:  YELLOWX= stc[0][3];
  1230.                 YELLOWY= stc[1][3];
  1231.         WaitTOF();
  1232.                 DrawGels();
  1233.         showpropinfo(11);
  1234.             break;
  1235.       case 12:  YELLOWX= eco[0][3];
  1236.                 YELLOWY= eco[1][3];
  1237.         WaitTOF();
  1238.                 DrawGels();
  1239.         showpropinfo(12);
  1240.             break;
  1241.       case 13:  YELLOWX= sts[0][3];
  1242.                 YELLOWY= sts[1][3];
  1243.         WaitTOF();
  1244.                 DrawGels();
  1245.         showpropinfo(13);
  1246.             break;
  1247.       case 14:  YELLOWX= va[0][3];
  1248.                 YELLOWY= va[1][3];
  1249.         WaitTOF();
  1250.                 DrawGels();
  1251.         showpropinfo(14);
  1252.             break;
  1253.       case 15:  YELLOWX= rrp[0][3];
  1254.                 YELLOWY= rrp[1][3];
  1255.         WaitTOF();
  1256.                 DrawGels();
  1257.         showpropinfo(15);
  1258.             break;
  1259.       case 16:  YELLOWX= stj[0][3];
  1260.                 YELLOWY= stj[1][3];
  1261.         WaitTOF();
  1262.                 DrawGels();
  1263.         showpropinfo(16);
  1264.             break;
  1265.       case 17:  YELLOWX= cc2[0][3];
  1266.                 YELLOWY= cc2[1][3];
  1267.         WaitTOF();
  1268.                 DrawGels();
  1269.         showpropinfo(17);
  1270.             break;
  1271.       case 18:  YELLOWX= tn[0][3];
  1272.                 YELLOWY= tn[1][3];
  1273.         WaitTOF();
  1274.                 DrawGels();
  1275.         showpropinfo(18);
  1276.             break;
  1277.       case 19:  YELLOWX= ny[0][3];
  1278.                 YELLOWY= ny[1][3];
  1279.         WaitTOF();
  1280.                 DrawGels();
  1281.         showpropinfo(19);
  1282.             break;
  1283.       case 20:  YELLOWX= fp[0][3];
  1284.                 YELLOWY= fp[1][3];
  1285.         WaitTOF();
  1286.                 DrawGels();
  1287.         showpropinfo(20);
  1288.             break;
  1289.       case 21:  YELLOWX= ky[0][3];
  1290.                 YELLOWY= ky[1][3];
  1291.         WaitTOF();
  1292.                 DrawGels();
  1293.         showpropinfo(21);
  1294.             break;
  1295.       case 22:  YELLOWX= c2[0][3];
  1296.                 YELLOWY= c2[1][3];
  1297.         WaitTOF();
  1298.                 DrawGels();
  1299.         showpropinfo(22);
  1300.             break;
  1301.       case 23:  YELLOWX= in[0][3];
  1302.                 YELLOWY= in[1][3];
  1303.         WaitTOF();
  1304.                 DrawGels();
  1305.         showpropinfo(23);
  1306.             break;
  1307.       case 24:  YELLOWX= il[0][3];
  1308.                 YELLOWY= il[1][3];
  1309.         WaitTOF();
  1310.                 DrawGels();
  1311.                 showpropinfo(24);
  1312.             break;
  1313.       case 25:  YELLOWX= rrb[0][3];
  1314.                 YELLOWY= rrb[1][3];
  1315.         WaitTOF();
  1316.                 DrawGels();
  1317.         showpropinfo(25);
  1318.             break;
  1319.       case 26:  YELLOWX= at[0][3];
  1320.                 YELLOWY= at[1][3];
  1321.         WaitTOF();
  1322.                 DrawGels();
  1323.         showpropinfo(26);
  1324.             break;
  1325.       case 27:  YELLOWX= ven[0][3];
  1326.                 YELLOWY= ven[1][3];
  1327.         WaitTOF();
  1328.                 DrawGels();
  1329.         showpropinfo(27);
  1330.             break;
  1331.       case 28:  YELLOWX= ww[0][3];
  1332.                 YELLOWY= ww[1][3];
  1333.         WaitTOF();
  1334.                 DrawGels();
  1335.         showpropinfo(28);
  1336.             break;
  1337.       case 29:  YELLOWX= mar[0][3];
  1338.                 YELLOWY= mar[1][3];
  1339.         WaitTOF();
  1340.                 DrawGels();
  1341.         showpropinfo(29);
  1342.             break;
  1343.       case 30:  YELLOWX= gtj[0][3];
  1344.                 YELLOWY= gtj[1][3];
  1345.         WaitTOF();
  1346.                 DrawGels();
  1347.         showpropinfo(30);
  1348.         sendtojail();
  1349.             break;
  1350.       case 31:  YELLOWX= pac[0][3];
  1351.                 YELLOWY= pac[1][3];
  1352.         WaitTOF();
  1353.                 DrawGels();
  1354.         showpropinfo(31);
  1355.             break;
  1356.       case 32:  YELLOWX= nc[0][3];
  1357.                 YELLOWY= nc[1][3];
  1358.         WaitTOF();
  1359.                 DrawGels();
  1360.         showpropinfo(32);
  1361.             break;
  1362.       case 33:  YELLOWX= cc3[0][3];
  1363.                 YELLOWY= cc3[1][3];
  1364.         WaitTOF();
  1365.                 DrawGels();
  1366.         showpropinfo(33);
  1367.             break;
  1368.       case 34:  YELLOWX= pen[0][3];
  1369.                 YELLOWY= pen[1][3];
  1370.         WaitTOF();
  1371.                 DrawGels();
  1372.         showpropinfo(34);
  1373.             break;
  1374.       case 35:  YELLOWX= rrs[0][3];
  1375.                 YELLOWY= rrs[1][3];
  1376.         WaitTOF();
  1377.                 DrawGels();
  1378.         showpropinfo(35);
  1379.             break;
  1380.       case 36:  YELLOWX= c3[0][3];
  1381.                 YELLOWY= c3[1][3];
  1382.         WaitTOF();
  1383.                 DrawGels();
  1384.         showpropinfo(36);
  1385.             break;
  1386.       case 37:  YELLOWX= pp[0][3];
  1387.                 YELLOWY= pp[1][3];
  1388.         WaitTOF();
  1389.                 DrawGels();
  1390.         showpropinfo(37);
  1391.             break;
  1392.       case 38:  YELLOWX= ptax[0][3];
  1393.                 YELLOWY= ptax[1][3];
  1394.         WaitTOF();
  1395.                 DrawGels();
  1396.         showpropinfo(38);
  1397.             break;
  1398.       case 39:  YELLOWX= bw[0][3];
  1399.                 YELLOWY= bw[1][3];
  1400.         WaitTOF();
  1401.                 DrawGels();
  1402.         showpropinfo(39);
  1403.             break;
  1404.       }
  1405.    }
  1406. }
  1407.  
  1408. VOID endgame()
  1409. {
  1410. if (really(QUIT))  done=TRUE;
  1411. }
  1412.