Advertisement
ijontichy

test.c

Mar 23rd, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1. #include "zcommon.acs"
  2.  
  3. #define MAXSECTORS  65535
  4. #define DELAYSECTOR 10000
  5.  
  6. script 636 OPEN
  7. {
  8.     int i;
  9.     SetMusic("D_SILENT");
  10.  
  11.     while (1)
  12.     {
  13.         for (i = 0; i < MAXSECTORS; i++)
  14.         {
  15.             if (GetSectorLightLevel(i) > 0)
  16.             {
  17.                 Log(d:i, s:": ", d:GetSectorLightLevel(i));
  18.  
  19.                 Light_ChangeToValue(i, 0);
  20.                 Sector_SetFade(i, 0,0,0);
  21.                 Light_Stop(i);
  22.             }
  23.  
  24.             if (i % DELAYSECTOR == DELAYSECTOR-1) { Delay(1); }
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement