// round up to nearest divisible by 8
m_sceneWidth += ((m_sceneWidth&0x7) ^ 0x7) + 1;
m_sceneHeight += ((m_sceneHeight&0x7) ^ 0x7) + 1;
(1600,1200) became (1608,1208)
(Thanks to Dan)
Epic failures in the game development field.
This blog covers funny/weird issues and bugs from games that happened during development.
Send your own contributions to igetyourfail at repi.se (can be anonymous if specified)
// round up to nearest divisible by 8
m_sceneWidth += ((m_sceneWidth&0x7) ^ 0x7) + 1;
m_sceneHeight += ((m_sceneHeight&0x7) ^ 0x7) + 1;
No comments:
Post a Comment