Load .MAP as well, in addition to .. .map

This commit is contained in:
Timothee Besset 2018-01-27 15:14:42 -06:00
parent 88b992a9eb
commit 0ea61635b6
1 changed files with 4 additions and 4 deletions

View File

@ -467,10 +467,10 @@ void CRadiantPluginManager::PopulateMenu(){
} }
void CSynapseClientRadiant::ImportMap( IDataStream *in, CPtrArray *ents, const char *type ){ void CSynapseClientRadiant::ImportMap( IDataStream *in, CPtrArray *ents, const char *type ){
if ( strcmp( type,"map" ) == 0 ) { if ( strcasecmp( type, "map" ) == 0 ) {
g_MapTable.m_pfnMap_Read( in, ents ); g_MapTable.m_pfnMap_Read( in, ents );
} }
else if ( strcmp( type,"xmap" ) == 0 ) { else if (strcasecmp( type,"xmap" ) == 0 ) {
g_MapTable2.m_pfnMap_Read( in, ents ); g_MapTable2.m_pfnMap_Read( in, ents );
} }
else{ else{
@ -479,10 +479,10 @@ void CSynapseClientRadiant::ImportMap( IDataStream *in, CPtrArray *ents, const c
} }
void CSynapseClientRadiant::ExportMap( CPtrArray *ents, IDataStream *out, const char *type ){ void CSynapseClientRadiant::ExportMap( CPtrArray *ents, IDataStream *out, const char *type ){
if ( strcmp( type,"map" ) == 0 ) { if (strcasecmp( type,"map" ) == 0 ) {
g_MapTable.m_pfnMap_Write( ents, out ); g_MapTable.m_pfnMap_Write( ents, out );
} }
else if ( strcmp( type,"xmap" ) == 0 ) { else if (strcasecmp( type,"xmap" ) == 0 ) {
g_MapTable2.m_pfnMap_Write( ents, out ); g_MapTable2.m_pfnMap_Write( ents, out );
} }
else{ else{