Quote:Original post by DerAnged
MapTile *Map[2000][2000]; // The map tiles array.
MapTile *VisibleMap[300][300];
Are you sure you need a 3 dimensional array?
3D? I only see 2
Quote:Original post by DerAnged
MapTile *Map[2000][2000]; // The map tiles array.
MapTile *VisibleMap[300][300];
Are you sure you need a 3 dimensional array?
Quote:Original post by quasar3dQuote:Original post by DerAnged
MapTile *Map[2000][2000]; // The map tiles array.
MapTile *VisibleMap[300][300];
Are you sure you need a 3 dimensional array?
3D? I only see 2
Quote:Original post by Twiggy
It works! It absoloutly works! Even my stupid old computer's teacher couldn't solve it! [wow]
Thanks! You all got my rating. :)
Now all I have left is to fix to prog and ask these following questions:
1. How did you know that the size of the array is exactly 16MB?
2. How did you know if I do it pointer-less it goes straight into the stack (for temporary use)?
3. Is there a way to incerse the stack's size?
PLease explaing my mistakes, I would like to know from them! :)
You have my thanks again, oh gurus of great computer wisdom.
Here's a treat for your help - one of the funniest net-flash-toons ever made: http://www.illwillpress.com/vault.html
Quote:Original post by Miserable
The 1,000,000 presumably stems from the fact that 1,000,000 bytes is roughly 1 MB (actually, 1 "MiB" is 1024*1024=1,048,576 bytes).
Quote:Original post by Twiggy
1. How did you know that the size of the array is exactly 16MB?
2. How did you know if I do it pointer-less it goes straight into the stack (for temporary use)?
3. Is there a way to incerse the stack's size?