fix ignoring surface alpha for surfacemodels

This commit is contained in:
Rudolf Polzer
2011-06-05 19:32:43 +02:00
parent c75d4746fd
commit 770b8ea401

View File

@@ -3108,7 +3108,7 @@ int AddSurfaceModelsToTriangle_r( mapDrawSurface_t *ds, surfaceModel_t *model, b
/* roll the dice (model's odds scaled by vertex alpha) */
odds = model->odds * (tri[ 0 ]->color[ 0 ][ 3 ] + tri[ 0 ]->color[ 0 ][ 3 ] + tri[ 0 ]->color[ 0 ][ 3 ]) / 765.0f;
r = Random();
if( r > model->odds )
if( r > odds )
return 0;
/* calculate scale */