MachoChen / recastnavigation

Automatically exported from code.google.com/p/recastnavigation
zlib License
0 stars 0 forks source link

Recast.h: Declaration for rcAddSpan does not match definition in source file. #167

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
For rcAddSpan, the header declares the area parameter as an unsigned short, 
while the source declares it as an unsigned char.

This results in linker errors if rcAddSpan is used.

From Recast.h:

void rcAddSpan(rcContext* ctx, 
    rcHeightfield& solid, 
    const int x, 
    const int y,
    const unsigned short smin, 
    const unsigned short smax,
    const unsigned short area,    <<<<<<
    const int flagMergeThr);

From RecastRasterization.cpp:

void rcAddSpan(rcContext* /*ctx*/, 
    rcHeightfield& hf, 
    const int x, 
    const int y,
    const unsigned short smin, 
    const unsigned short smax,
    const unsigned char area,    <<<<<<
    const int flagMergeThr) { ... }

Original issue reported on code.google.com by steve...@gmail.com on 26 Apr 2011 at 8:18

GoogleCodeExporter commented 8 years ago
Thanks for the report. Fixed in R294.

Original comment by memono...@gmail.com on 30 Apr 2011 at 5:43