mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@954 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
846c7701d4
commit
01182163a9
1 changed files with 9 additions and 7 deletions
|
@ -6671,7 +6671,13 @@ static int parse(void)
|
||||||
insptr++;
|
insptr++;
|
||||||
{
|
{
|
||||||
int dq = *insptr++, sq = *insptr++;
|
int dq = *insptr++, sq = *insptr++;
|
||||||
if (fta_quotes[sq] != NULL && fta_quotes[dq] != NULL)
|
if (fta_quotes[sq] == NULL || fta_quotes[dq] == NULL)
|
||||||
|
{
|
||||||
|
OSD_Printf(CON_ERROR "CON_QSPRINTF: null quote %d\n",line_num,sq ? dq : sq);
|
||||||
|
insptr += 4;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
int var1 = GetGameVarID(*insptr++, g_i, g_p), var2 = GetGameVarID(*insptr++, g_i, g_p);
|
int var1 = GetGameVarID(*insptr++, g_i, g_p), var2 = GetGameVarID(*insptr++, g_i, g_p);
|
||||||
int var3 = GetGameVarID(*insptr++, g_i, g_p), var4 = GetGameVarID(*insptr++, g_i, g_p);
|
int var3 = GetGameVarID(*insptr++, g_i, g_p), var4 = GetGameVarID(*insptr++, g_i, g_p);
|
||||||
|
@ -6679,10 +6685,6 @@ static int parse(void)
|
||||||
Bsprintf(fta_quotes[dq],tempbuf,var1,var2,var3,var4);
|
Bsprintf(fta_quotes[dq],tempbuf,var1,var2,var3,var4);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (fta_quotes[sq] == NULL) OSD_Printf(CON_ERROR "CON_QSPRINTF: null quote %d\n",line_num,sq);
|
|
||||||
if (fta_quotes[dq] == NULL) OSD_Printf(CON_ERROR "CON_QSPRINTF: null quote %d\n",line_num,dq);
|
|
||||||
insptr += 4;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case CON_ADDLOG:
|
case CON_ADDLOG:
|
||||||
|
@ -7309,13 +7311,13 @@ static int parse(void)
|
||||||
case CON_SMAXAMMO:
|
case CON_SMAXAMMO:
|
||||||
insptr++;
|
insptr++;
|
||||||
j=GetGameVarID(*insptr++, g_i, g_p);
|
j=GetGameVarID(*insptr++, g_i, g_p);
|
||||||
g_player[g_p].ps->max_ammo_amount[j]=GetGameVarID(*insptr++, g_i, g_p);
|
|
||||||
if (j<0 || j>=MAX_WEAPONS)
|
if (j<0 || j>=MAX_WEAPONS)
|
||||||
{
|
{
|
||||||
OSD_Printf(CON_ERROR "CON_SMAXAMMO: Invalid weapon ID %d\n",line_num,j);
|
OSD_Printf(CON_ERROR "CON_SMAXAMMO: Invalid weapon ID %d\n",line_num,j);
|
||||||
insptr++;
|
insptr++;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
g_player[g_p].ps->max_ammo_amount[j]=GetGameVarID(*insptr++, g_i, g_p);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CON_MULVARVAR:
|
case CON_MULVARVAR:
|
||||||
|
@ -7612,7 +7614,7 @@ static int parse(void)
|
||||||
if (g_player[g_p].ps->boot_amount != *insptr) j = 1;
|
if (g_player[g_p].ps->boot_amount != *insptr) j = 1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
OSD_Printf(CON_ERROR "CON_IFPINVENTORY: invalid inventory ID\n",line_num);
|
OSD_Printf(CON_ERROR "CON_IFPINVENTORY: invalid inventory ID: %d\n",line_num,*(insptr-1));
|
||||||
}
|
}
|
||||||
|
|
||||||
parseifelse(j);
|
parseifelse(j);
|
||||||
|
|
Loading…
Reference in a new issue