Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

alien8.patch

By: h3xx on Nov 2nd, 2011  |  syntax: Diff  |  size: 1.62 KB  |  views: 96  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff -ru alien8.orig/internet.c alien8/internet.c
  2. --- alien8.orig/internet.c      2008-03-23 14:47:52.000000000 -0500
  3. +++ alien8/internet.c   2011-11-02 19:23:46.000000000 -0500
  4. @@ -3,9 +3,9 @@
  5.  #include "stdio.h"
  6.  
  7.  // USE HERE THE PROPER DEFINITION FOR THE OS YOU ARE COMPILING DEFLEKTOR ON
  8. -#define INTT_WIN // Windows
  9. +//#define INTT_WIN // Windows
  10.  //#define INTT_MAC // Macintosh
  11. -//#define INTT_LNX // Linux
  12. +#define INTT_LNX // Linux
  13.  //#define INTT_OTR // Other
  14.  
  15.  #ifdef INTT_WIN
  16. diff -ru alien8.orig/juego.c alien8/juego.c
  17. --- alien8.orig/juego.c 2008-05-22 17:48:22.000000000 -0500
  18. +++ alien8/juego.c      2011-11-02 19:30:06.000000000 -0500
  19. @@ -2782,7 +2782,15 @@
  20.         i=ism_cambiar_dato_objeto(movs[f].id,dato,dif,SUMAR);
  21.        }
  22.       else
  23. -       (dato==D_X?movs[f].m0:movs[f].m1)=(dif<0?-1:1);
  24. +      {
  25. +       int tmp = 1;
  26. +       if (dif < 0) tmp = -1;
  27. +       if (dato==D_X)
  28. +       movs[f].m0 = tmp;
  29. +       else
  30. +       movs[f].m1 = tmp;
  31. +       // (dato==D_X?movs[f].m0:movs[f].m1)=(dif<0?-1:1);
  32. +      }
  33.       if(!i && mover_n)
  34.         for(i=0;i<3;i++)
  35.           if(movs[f].id==movs[i].anclado)
  36. @@ -2806,7 +2814,16 @@
  37.             i=ism_cambiar_dato_objeto(movs[f].id,dato,dif,SUMAR);
  38.            }
  39.           else
  40. -           (dato==D_X?movs[f].m0:movs[f].m1)=dif;
  41. +         {
  42. +          int tmp = 1;
  43. +          if (dif < 0) tmp = -1;
  44. +          if (dato==D_X)
  45. +           movs[f].m0 = tmp;
  46. +          else
  47. +           movs[f].m1 = tmp;
  48. +          // (dato==D_X?movs[f].m0:movs[f].m1)=(dif<0?-1:1);
  49. +         }
  50. +           // (dato==D_X?movs[f].m0:movs[f].m1)=dif;
  51.           if(!i)
  52.             for(i=1;i<num_movs;i++)
  53.               if(movs[f].id==movs[i].anclado)