From 2ee7845e8d7a113123ca6240427078a14e2f524d Mon Sep 17 00:00:00 2001 From: Blixibon Date: Wed, 27 Jan 2021 07:57:21 -0600 Subject: [PATCH] Made instance name fixup stop fixing up names starting with '!', which was causing problems with procedurals like !activator --- sp/src/fgdlib/gamedata.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sp/src/fgdlib/gamedata.cpp b/sp/src/fgdlib/gamedata.cpp index 4138ab4b..3d1d75e6 100644 --- a/sp/src/fgdlib/gamedata.cpp +++ b/sp/src/fgdlib/gamedata.cpp @@ -813,7 +813,11 @@ bool GameData::RemapNameField( const char *pszInValue, char *pszOutValue, TNameF { strcpy( pszOutValue, pszInValue ); +#ifdef MAPBASE + if ( pszInValue[ 0 ] && pszInValue[ 0 ] != '@' && pszInValue[ 0 ] != '!' ) +#else if ( pszInValue[ 0 ] && pszInValue[ 0 ] != '@' ) +#endif { // ! at the start of a value means it is global and should not be remaped switch( NameFixup ) {