Author Topic: Virtual size for Short layers?  (Read 2252 times)

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Virtual size for Short layers?
« 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?
Edward Dassmesser

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Virtual size for Short layers?
« Reply #1 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.