• R/O
  • SSH
  • HTTPS

dxruby: Commit


Commit MetaInfo

Revision543 (tree)
Time2016-09-29 23:15:51
Authormirichi

Log Message

Sprite#collision_enable=falseするとSprite#===で[]が返ってくる不具合修正

Change Summary

Incremental Difference

--- branches/1.5dev/sprite.c (revision 542)
+++ branches/1.5dev/sprite.c (revision 543)
@@ -822,16 +822,12 @@
822822 static VALUE Sprite_compare( VALUE self, VALUE vsprite )
823823 {
824824 struct DXRubyCollisionGroup collision1;
825- VALUE vary;
826825
827- /* 衝突したオブジェクトを入れる配列 */
828- vary = rb_ary_new();
829-
830826 /* selfのAABBボリューム計算 */
831827 if( make_volume( self, &collision1 ) == 0 )
832828 {
833829 collision_clear();
834- return vary;
830+ return Qfalse;
835831 }
836832
837833 if( TYPE(vsprite) == T_ARRAY )
Show on old repository browser