Unify checks for missing COM_Parse() token
This commit is contained in:
parent
d58234a6c7
commit
1048073e26
4 changed files with 15 additions and 15 deletions
|
@ -4549,7 +4549,7 @@ static qboolean Team_Parse(char **p) {
|
|||
return qtrue;
|
||||
}
|
||||
|
||||
if ( !token || token[0] == 0 ) {
|
||||
if (!token[0]) {
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
|
@ -4610,7 +4610,7 @@ static qboolean Character_Parse(char **p) {
|
|||
return qtrue;
|
||||
}
|
||||
|
||||
if ( !token || token[0] == 0 ) {
|
||||
if (!token[0]) {
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
|
@ -4666,7 +4666,7 @@ static qboolean Alias_Parse(char **p) {
|
|||
return qtrue;
|
||||
}
|
||||
|
||||
if ( !token || token[0] == 0 ) {
|
||||
if (!token[0]) {
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
|
@ -4715,7 +4715,7 @@ static void UI_ParseTeamInfo(const char *teamFile) {
|
|||
|
||||
while ( 1 ) {
|
||||
token = COM_ParseExt( &p, qtrue );
|
||||
if( !token || token[0] == 0 || token[0] == '}') {
|
||||
if (!token[0] || token[0] == '}') {
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -4767,7 +4767,7 @@ static qboolean GameType_Parse(char **p, qboolean join) {
|
|||
return qtrue;
|
||||
}
|
||||
|
||||
if ( !token || token[0] == 0 ) {
|
||||
if (!token[0]) {
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
|
@ -4824,7 +4824,7 @@ static qboolean MapList_Parse(char **p) {
|
|||
return qtrue;
|
||||
}
|
||||
|
||||
if ( !token || token[0] == 0 ) {
|
||||
if (!token[0]) {
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
|
@ -4885,7 +4885,7 @@ static void UI_ParseGameInfo(const char *teamFile) {
|
|||
|
||||
while ( 1 ) {
|
||||
token = COM_ParseExt( &p, qtrue );
|
||||
if( !token || token[0] == 0 || token[0] == '}') {
|
||||
if (!token[0] || token[0] == '}') {
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue