fix Lua errors
This commit is contained in:
@@ -193,6 +193,10 @@ void Lua::PrepareExpression( CString &sInOut )
|
|||||||
// comment out HTML style color values
|
// comment out HTML style color values
|
||||||
sInOut.Replace( "#", "--" );
|
sInOut.Replace( "#", "--" );
|
||||||
|
|
||||||
|
// HACK: Some actor commands ("screen,") have illegal Lua characters.
|
||||||
|
sInOut.Replace( " ", "" );
|
||||||
|
sInOut.Replace( "/", "" );
|
||||||
|
|
||||||
// Remove leading +, eg. "+50"; Lua doesn't handle that.
|
// Remove leading +, eg. "+50"; Lua doesn't handle that.
|
||||||
if( sInOut.size() >= 1 && sInOut[0] == '+' )
|
if( sInOut.size() >= 1 && sInOut[0] == '+' )
|
||||||
sInOut.erase( 0, 1 );
|
sInOut.erase( 0, 1 );
|
||||||
|
|||||||
Reference in New Issue
Block a user