mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Simplify code using str_comp
a bit
This commit is contained in:
parent
c21cc0ad00
commit
dbf056b253
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue