VX tilemap has 9 bitmaps
This commit is contained in:
parent
a365a7a754
commit
6abc207f1e
|
@ -58,8 +58,8 @@ RB_METHOD(tilemapVXInitialize)
|
||||||
|
|
||||||
VALUE autotilesObj = rb_iv_get(self, "bitmap_array");
|
VALUE autotilesObj = rb_iv_get(self, "bitmap_array");
|
||||||
|
|
||||||
VALUE ary = rb_ary_new2(7);
|
VALUE ary = rb_ary_new2(9);
|
||||||
for (int i = 0; i < 7; ++i)
|
for (int i = 0; i < 9; ++i)
|
||||||
rb_ary_push(ary, Qnil);
|
rb_ary_push(ary, Qnil);
|
||||||
|
|
||||||
rb_iv_set(autotilesObj, "array", ary);
|
rb_iv_set(autotilesObj, "array", ary);
|
||||||
|
@ -119,7 +119,7 @@ RB_METHOD(tilemapVXBitmapsGet)
|
||||||
int i;
|
int i;
|
||||||
rb_get_args (argc, argv, "i", &i RB_ARG_END);
|
rb_get_args (argc, argv, "i", &i RB_ARG_END);
|
||||||
|
|
||||||
if (i < 0 || i > 6)
|
if (i < 0 || i > 8)
|
||||||
return Qnil;
|
return Qnil;
|
||||||
|
|
||||||
VALUE ary = rb_iv_get(self, "array");
|
VALUE ary = rb_iv_get(self, "array");
|
||||||
|
|
Loading…
Reference in New Issue