Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int GetRadarTxdIndex(int x, int y)
- {
- return CNewRadar::m_pRadarTextures[x * CNewRadar::m_numberOfRadarTilesPerOneDimension + y];
- }
- void CNewRadar::StreamRadarSections(int x, int y)
- {
- for(int i = 0; i < m_numberOfRadarTilesPerOneDimension; i++)
- {
- for(int j = 0; j < m_numberOfRadarTilesPerOneDimension; j++)
- {
- if(i >= y - Settings.RadarLoadingAreaSize && i <= y + Settings.RadarLoadingAreaSize && j >= x - Settings.RadarLoadingAreaSize && j <= x + Settings.RadarLoadingAreaSize)
- {
- if(GetRadarTxdIndex(i, j) != -1)
- RequestModel(GetRadarTxdIndex(i, j) + m_baseTxdIndex, 10);
- }
- else
- {
- if(GetRadarTxdIndex(i, j) != -1)
- RemoveModel(GetRadarTxdIndex(i, j) + m_baseTxdIndex);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement