mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 03:51:18 +00:00
Load .MAP as well, in addition to .. .map
This commit is contained in:
parent
88b992a9eb
commit
0ea61635b6
1 changed files with 4 additions and 4 deletions
|
@ -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{
|
||||||
|
|
Loading…
Reference in a new issue