unsigned int maxtilec;
maxtilec = 256;
-
+
tl.tilev = malloc(maxtilec * sizeof(unsigned int));
tl.tilec = 0;
-
+
for (x = minx; x <= maxx; x++)
{
for (y = miny; y <= maxy; y++)
for (t = 0; t < tl.tilec; t++)
{
- rb_ary_push(tiles, UINT2NUM(tl.tilev[tl.tilec]));
+ rb_ary_push(tiles, UINT2NUM(tl.tilev[t]));
}
free(tl.tilev);