Scrolling Game Development Kit Forum

SGDK Version 2 => Help, Errors, FAQ => Topic started by: durnurd on 2008-09-13, 11:14:53 AM

Title: Virtual size for Short layers?
Post by: durnurd on 2008-09-13, 11:14:53 AM
I was looking at the code in LayerBase, and noticed that the get method for byte and int layers was:

return (int)(m_Tiles[x % m_nColumns, y % m_nRows]);

but for short it was only:

return (int)(m_Tiles[x,y]);

Same with GetTile and GetTileFrame.  I assume this is an oversight?
Title: Re: Virtual size for Short layers?
Post by: bluemonkmn on 2008-09-14, 07:04:10 AM
Oops... good timing since I was just about to open up SGDK2 and continue work on it anyway.  Fixed it.