fix Lua errors

This commit is contained in:
Chris Danford
2004-11-07 06:07:34 +00:00
parent b8259d7af9
commit 1fd7de648d
+4
View File
@@ -192,6 +192,10 @@ void Lua::PrepareExpression( CString &sInOut )
// comment out HTML style color values
sInOut.Replace( "#", "--" );
// HACK: Some actor commands ("screen,") have illegal Lua characters.
sInOut.Replace( " ", "" );
sInOut.Replace( "/", "" );
// Remove leading +, eg. "+50"; Lua doesn't handle that.
if( sInOut.size() >= 1 && sInOut[0] == '+' )