Page 1 of 1

DEMO:Slice.c: SliceQuery(...) has not the correct parameters

Posted: Wed Jan 14, 2015 2:34 am
by aisman
Downloaded the latest Chipmunk2D 7 source today (14.01.2015).

Compiled it on VS2013
Start demo => slice is chrashing

Reason: SliceQuery(...) has not the correct parameters.
wrong:

Code: Select all

SliceQuery(cpShape *shape, cpFloat t, cpVect n, struct SliceContext *context)
correct:

Code: Select all

SliceQuery(cpShape *shape, cpVect n, cpVect m, cpFloat t, struct SliceContext *context)
Slice works with this changed line on MS Windows.

Re: DEMO:Slice.c: SliceQuery(...) has not the correct parame

Posted: Thu Jan 15, 2015 2:31 pm
by AndyKorth
Thanks for the report! I guess since those parameters aren't used in the function, it compiles okay on other platforms.

I've made the fix and pushed it to github. Thanks again!