Rinum / OpenAnt

Open Ant! Join us at reddit.com/r/openant and http://webchat.freenode.net/ #openant
http://openant.com
102 stars 20 forks source link

Crash when digging underground #24

Closed new-guy closed 11 years ago

new-guy commented 12 years ago

Pretty straightforward bug. If you try to dig underground, the game crashes and you get an index out of bounds error. I think it comes from the fact that the Map.tiles array has a size of [mapsize, mapsize*2] & the Map.antHills array has a size of [mapsize, mapsize].

I only post this because there should be a discussion of how we want to manage the above ground map & the below ground map. Should they be kept in the same array or be in separate ones?