Mercurial > mm7
diff Render.h @ 169:d1dde383af89
Merge
author | Nomad |
---|---|
date | Thu, 14 Feb 2013 14:03:17 +0200 |
parents | ee11772d0ad2 3235bc4cf78e |
children | d65528fc3bda |
line wrap: on
line diff
--- a/Render.h Thu Feb 14 13:58:34 2013 +0200 +++ b/Render.h Thu Feb 14 14:03:17 2013 +0200 @@ -70,6 +70,11 @@ unsigned __int16 uPaletteSubindex; unsigned int uTintColor; SpriteFrame *pSpriteFrame; + + inline float GetFloatZ() const + { + return LOWORD(sZValue) / 65535.0f + (float)HIWORD(sZValue); + } }; #pragma pack(pop)