fix loading pointfile for KexQ2

This commit is contained in:
ttimo 2022-11-15 10:28:14 -06:00
parent 1c498433ce
commit 8f88d5fac0
1 changed files with 5 additions and 1 deletions

View File

@ -127,7 +127,11 @@ void WINAPI Pointfile_Check( void ){
strcpy( name, currentmap ); strcpy( name, currentmap );
StripExtension( name ); StripExtension( name );
strcat( name, ".lin" ); if ( g_pGameDescription->mGameFile == Q2_REMASTER_GAME ) {
strcat(name, ".pts");
} else {
strcat(name, ".lin");
}
size = vfsLoadFullPathFile( name, (void**)&data ); size = vfsLoadFullPathFile( name, (void**)&data );
if ( size <= 0 ) { if ( size <= 0 ) {