Mercurial > mm7
comparison LOD.h @ 1464:b870630761df
m
author | Ritor1 |
---|---|
date | Mon, 26 Aug 2013 10:39:10 +0600 |
parents | c0b273d33338 |
children | 7ef4b64f6329 |
comparison
equal
deleted
inserted
replaced
1463:b330df6a2183 | 1464:b870630761df |
---|---|
166 void _inlined_sub2(); | 166 void _inlined_sub2(); |
167 | 167 |
168 inline struct Texture *GetTexture(int idx) | 168 inline struct Texture *GetTexture(int idx) |
169 { | 169 { |
170 assert(idx < 1000); | 170 assert(idx < 1000); |
171 if (idx == -1) return nullptr; // we need to return dummy texture here | 171 if (idx == -1) |
172 return pTextures + idx; | 172 return nullptr; // we need to return dummy texture here |
173 return &pTextures[idx]; | |
173 } | 174 } |
174 | 175 |
175 | 176 |
176 /*FILE *pFile; | 177 /*FILE *pFile; |
177 unsigned __int8 pLODName[256]; | 178 unsigned __int8 pLODName[256]; |