mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-26 03:11:30 +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" ) ) {
|
if ( !strcmp( ValueForKey( g_qeglobals.d_project_entity, "gamemode" ), "sp" ) ) {
|
||||||
// SP mapping, ignore mp_*.def
|
// SP mapping, ignore mp_*.def
|
||||||
char *name = (char *)pFile->data;
|
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 );
|
Sys_Printf( "Single Player mapping mode. Ignoring '%s'\n", name );
|
||||||
pFile = pFile->next;
|
pFile = pFile->next;
|
||||||
continue;
|
continue;
|
||||||
|
@ -392,7 +393,7 @@ void Eclass_Init(){
|
||||||
{
|
{
|
||||||
// HM mapping, ignore sp_*.def
|
// HM mapping, ignore sp_*.def
|
||||||
char *name = (char *)pFile->data;
|
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 );
|
Sys_Printf( "HoloMatch mapping mode. Ignoring '%s'\n", name );
|
||||||
pFile = pFile->next;
|
pFile = pFile->next;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue