Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.61 KB | None | 0 0
  1. switch(stan2)
  2.         {
  3.             case 1:
  4.             Z1=1;
  5.             if(!tim2){stan2=2; tim2=10;}
  6.             else if(x1||!tim3) stan2=3; break;
  7.            
  8.             case 2:
  9.             Z1=0;
  10.             if(!tim3) stan2=3;
  11.             else if(!tim2) { stan2=1; tim2=20;}
  12.             break;
  13.            
  14.             case 3 :
  15.             Z1=0;
  16.             if(!x2) stan2=1; break;
  17.          }
  18.          
  19.          switch(stan3)
  20.          {
  21.             case 1:
  22.             Z2=1;
  23.             if(x4){stan3=2; tim4=200;} break;
  24.            
  25.             case 2 :
  26.             Z2=1;
  27.             if(!tim4 || x3) stan3=3;
  28.             else if(!x4) stan3=1; break;
  29.            
  30.             case 3: Z2=0;
  31.             if(!x4) stan3=1; break;
  32.          }
  33.          
  34.          if(tim1) --tim1;
  35.          if(tim2) --tim2;
  36.          if(tim3) --tim3;
  37.          if(tim4) --tim4;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement