Merge pull request #74 from germangar/jal-minifixes

maxLMSurfaceVerts and keepLights not initialized from their game descriptor values
This commit is contained in:
Garux 2021-06-04 00:39:43 +03:00 committed by GitHub
commit cfdcfe2b62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -698,11 +698,13 @@ int BSPMain( int argc, char **argv ){
strClear( tempSource );
/* set standard game flags */
maxLMSurfaceVerts = game->maxLMSurfaceVerts;
maxSurfaceVerts = game->maxSurfaceVerts;
maxSurfaceIndexes = game->maxSurfaceIndexes;
emitFlares = game->emitFlares;
texturesRGB = game->texturesRGB;
colorsRGB = game->colorsRGB;
keepLights = game->keepLights;
/* process arguments */
for ( i = 1; i < ( argc - 1 ); i++ )