Skip to content

Commit 2ee7845

Browse files
committed
Made instance name fixup stop fixing up names starting with '!', which was causing problems with procedurals like !activator
1 parent fa37adb commit 2ee7845

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sp/src/fgdlib/gamedata.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,11 @@ bool GameData::RemapNameField( const char *pszInValue, char *pszOutValue, TNameF
813813
{
814814
strcpy( pszOutValue, pszInValue );
815815

816+
#ifdef MAPBASE
817+
if ( pszInValue[ 0 ] && pszInValue[ 0 ] != '@' && pszInValue[ 0 ] != '!' )
818+
#else
816819
if ( pszInValue[ 0 ] && pszInValue[ 0 ] != '@' )
820+
#endif
817821
{ // ! at the start of a value means it is global and should not be remaped
818822
switch( NameFixup )
819823
{

0 commit comments

Comments
 (0)