VX tilemap has 9 bitmaps #68

Merged
cremno merged 1 commits from vxtilemap-has-9-bitmaps into master 2014-09-12 21:13:08 +00:00
1 changed files with 3 additions and 3 deletions

View File

@ -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");