Advertisement
Dimitri_UA

Untitled

Jan 18th, 2015
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1. void CNewRadar::StreamRadarSections(int x, int y)
  2. {
  3.     int (*radarTextures)[12] = (int (*)[12])0xBA8478;
  4.     for(int i = 0; i < 12; i++)
  5.     {
  6.         for(int j = 0; j < 12; j++)
  7.         {
  8.             if(i >= y - Settings.RadarLoadingAreaSize && i <= y + Settings.RadarLoadingAreaSize && j >= x - Settings.RadarLoadingAreaSize && j <= x + Settings.RadarLoadingAreaSize)
  9.             {
  10.                 if(radarTextures[i][j] != -1)
  11.                     RequestModel(radarTextures[i][j] + m_baseTxdIndex, 10);
  12.             }
  13.             else
  14.             {
  15.                 if(radarTextures[i][j] != -1)
  16.                     RemoveModel(radarTextures[i][j] + m_baseTxdIndex);
  17.             }
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement