Original Post
I''m using code that I''ve used before, but now I''m getting different results. I''m using it exactly how I use to, but it don''t work:
// m_ucTilenumbers is of unsigned char* type. All values are 0 // m_rAreas is of type RECT*. // m_iColumns = 25 // m_iTileSize = 32 // This is my code, which I''ve used before and which I got out // of Jim Adams RPG book. m_rAreas[iSector].left = (m_ucTilenumbers[iSector] % m_iColumns) * m_iTileSize; // Works fine m_rAreas[iSector].top = (m_ucTilenumbers[iSector] / m_iColumns) * m_iTileSize; // Doesn''t work; produces 192. If I do just // (m_ucTilenumbers[iSector] / m_iColumns), the result is 6.I just don''t understand why its doing this now. Thanks, Donny, Dragonfire Games =========================================================== using DirectX9/C++(MSVC++ 6 Pro. Ed.) ===========================================================