Bennu Game Development

English Forums => Suggestions => Topic started by: Eckolin on September 30, 2010, 12:48:49 PM

Title: [BUG] draw_line crash (still)
Post by: Eckolin on September 30, 2010, 12:48:49 PM
The following coordinates cause a crash on my system. (R165)


import "mod_map"
import "mod_key"
import "mod_proc"
import "mod_draw"
private
    g;
begin
    g=new_map(640,480,16);
    drawing_map(0,g);
    draw_line(603,321,204,-16);
    loop
        if (key(_esc)) exit("",0);end
        frame;
    end
end
Title: Re: [BUG] draw_line crash (still)
Post by: panreyes on September 30, 2010, 01:24:00 PM
Don't you miss set_mode on 16 bits?
Title: Re: [BUG] draw_line crash (still)
Post by: Eckolin on September 30, 2010, 01:45:07 PM
Adding set_mode(320,240,16) does not make a difference.
Title: Re: [BUG] draw_line crash (still)
Post by: FreeYourMind on September 30, 2010, 02:32:48 PM
debug with say(g) to see the values.
Title: Re: [BUG] draw_line crash (still)
Post by: SplinterGU on September 30, 2010, 02:47:52 PM
guys, don't worry for fix this... this is a draw_line bug...

maybe in the svn version this is fixed.

I'll test it now.
Title: Re: [BUG] draw_line crash (still)
Post by: SplinterGU on September 30, 2010, 02:49:17 PM
this still... I'll check... thanks for report.
Title: Re: [BUG] draw_line crash (still)
Post by: SplinterGU on September 30, 2010, 04:10:02 PM
fixed!
Thanks for the report...

I'll update svn now.