Mercurial > mm7
diff LOD.h @ 434:137c59c3dbc4
Temple of Moon and Dragon Lair can now be entered.
author | Nomad |
---|---|
date | Sun, 24 Feb 2013 01:42:35 +0200 |
parents | a9e9c6989d04 |
children | 9824e2eeee30 |
line wrap: on
line diff
--- a/LOD.h Sun Feb 24 01:08:02 2013 +0200 +++ b/LOD.h Sun Feb 24 01:42:35 2013 +0200 @@ -1,6 +1,7 @@ #pragma once #include <stdio.h> #include <memory.h> +#include <assert.h> #include "Texture.h" @@ -158,6 +159,14 @@ void _4114F2(); void _4355F7(); + inline Texture *GetTexture(int idx) + { + assert(idx < 1000); + if (idx == -1) + return nullptr; + return pTextures + idx; + } + /*FILE *pFile; unsigned __int8 pLODName[256];