mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-22 03:41:39 +00:00
Bugfix for STVEF support
Fixed a bug for mp mapping where the hm_entities.def was ignored instead of the sp_entities.def.
This commit is contained in:
parent
7c0f42e455
commit
8c35fd8d9f
1 changed files with 3 additions and 2 deletions
|
@ -382,7 +382,8 @@ void Eclass_Init(){
|
|||
if ( !strcmp( ValueForKey( g_qeglobals.d_project_entity, "gamemode" ), "sp" ) ) {
|
||||
// SP mapping, ignore mp_*.def
|
||||
char *name = (char *)pFile->data;
|
||||
if ( name[0] == 'm' && name[1] == 'p' && name[2] == '_' ) {
|
||||
if ( name[0] == 'm' && name[1] == 'p' && name[2] == '_'
|
||||
|| name[0] == 'h' && name[1] == 'm' && name[2] == '_' ) {
|
||||
Sys_Printf( "Single Player mapping mode. Ignoring '%s'\n", name );
|
||||
pFile = pFile->next;
|
||||
continue;
|
||||
|
@ -392,7 +393,7 @@ void Eclass_Init(){
|
|||
{
|
||||
// HM mapping, ignore sp_*.def
|
||||
char *name = (char *)pFile->data;
|
||||
if ( name[0] == 'h' && name[1] == 'm' && name[2] == '_' ) {
|
||||
if ( name[0] == 's' && name[1] == 'p' && name[2] == '_' ) {
|
||||
Sys_Printf( "HoloMatch mapping mode. Ignoring '%s'\n", name );
|
||||
pFile = pFile->next;
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue