PicoModel Backport: Fixed compilation.

This commit is contained in:
Christophe Mateos 2016-12-19 23:45:54 +01:00
parent aac08480d3
commit 2d08c0518c
4 changed files with 7 additions and 2 deletions

View file

@ -267,6 +267,7 @@ void PicoSetSurfaceIndex( picoSurface_t *surface, int num
void PicoSetSurfaceIndexes( picoSurface_t *surface, int num, picoIndex_t *index, int count );
void PicoSetFaceNormal( picoSurface_t *surface, int num, picoVec3_t normal );
void PicoSetSurfaceSpecial( picoSurface_t *surface, int num, int special );
void PicoSetSurfaceSmoothingGroup( picoSurface_t *surface, int num, picoIndex_t smoothingGroup );
/* getter functions */

View file

@ -147,6 +147,7 @@
<ClCompile Include="lwo\surface.c" />
<ClCompile Include="lwo\vecmath.c" />
<ClCompile Include="lwo\vmap.c" />
<ClCompile Include="pm_terrain.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">

View file

@ -77,5 +77,8 @@
<ClCompile Include="lwo\vmap.c">
<Filter>src\lwo</Filter>
</ClCompile>
<ClCompile Include="pm_terrain.c">
<Filter>src</Filter>
</ClCompile>
</ItemGroup>
</Project>

View file

@ -285,8 +285,8 @@ static picoModel_t *_lwo_load( PM_PARAMS_LOAD ){
///* doom3 lwo data doesn't seem to have smoothing-angle information */
//#if 0
// if ( surface->smooth <= 0 ) {
// /* use face normals */
if ( surface->smooth <= 0 ) {
/* use face normals */
normal[ 0 ] = v->norm[ 0 ];
normal[ 1 ] = v->norm[ 2 ];
normal[ 2 ] = v->norm[ 1 ];