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 ); strClear( tempSource );
/* set standard game flags */ /* set standard game flags */
maxLMSurfaceVerts = game->maxLMSurfaceVerts;
maxSurfaceVerts = game->maxSurfaceVerts; maxSurfaceVerts = game->maxSurfaceVerts;
maxSurfaceIndexes = game->maxSurfaceIndexes; maxSurfaceIndexes = game->maxSurfaceIndexes;
emitFlares = game->emitFlares; emitFlares = game->emitFlares;
texturesRGB = game->texturesRGB; texturesRGB = game->texturesRGB;
colorsRGB = game->colorsRGB; colorsRGB = game->colorsRGB;
keepLights = game->keepLights;
/* process arguments */ /* process arguments */
for ( i = 1; i < ( argc - 1 ); i++ ) for ( i = 1; i < ( argc - 1 ); i++ )