Simplify code using str_comp a bit

This commit is contained in:
heinrich5991 2019-02-03 00:56:05 +01:00
parent c21cc0ad00
commit dbf056b253

View file

@ -723,7 +723,7 @@ void CConsole::ParseArguments(int NumArgs, const char **ppArguments)
for(int i = 0; i < NumArgs; i++)
{
// check for scripts to execute
if(ppArguments[i][0] == '-' && ppArguments[i][1] == 'f' && ppArguments[i][2] == 0)
if(str_comp("-f", ppArguments[i]) == 0)
{
if(NumArgs - i > 1)
ExecuteFile(ppArguments[i+1]);