Skip to content

Commit

Permalink
- Blood: fixed parser for 'mario' cheat to treat a leading space for …
Browse files Browse the repository at this point in the history
…the level number as 0.
  • Loading branch information
coelckers committed Jul 25, 2021
1 parent b23db14 commit fa586d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/games/blood/src/messages.cpp
Expand Up @@ -267,7 +267,8 @@ static int parseArgs(char *pzArgs, int *nArg1, int *nArg2)
if (!nArg1 || !nArg2 || strlen(pzArgs) < 3)
return -1;
*nArg1 = pzArgs[0] - '0';
*nArg2 = (pzArgs[1] - '0')*10+(pzArgs[2]-'0');
int a1 = pzArgs[1] == ' ' ? 0 : pzArgs[1] - '0';
*nArg2 = a1 * 10 + (pzArgs[2] - '0');
return 2;
}

Expand Down

0 comments on commit fa586d6

Please sign in to comment.