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

Discuss any Chipmunk bugs here.
Post Reply
aisman
Posts: 145
Joined: Tue Mar 04, 2008 2:21 am
Contact:

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

Post 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.
Chipmunk4PB: The fastest way to write games together with PureBasic and the Chipmunk physics engine.
User avatar
AndyKorth
Site Admin
Posts: 36
Joined: Wed Aug 15, 2007 3:56 pm

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

Post 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!
Post Reply