UCRP_TRIGGER: Since we're not doing the custom condition string, just say the player has to "do something special on [levelname]".

This commit is contained in:
toaster 2023-03-31 16:03:52 +01:00
parent 0708c282fc
commit 9f1ab11bb1
2 changed files with 3 additions and 3 deletions

View file

@ -2763,7 +2763,7 @@ static void readcondition(UINT8 set, UINT32 id, char *word2)
}
else if (fastcmp(params[0], "TRIGGER"))
{
PARAMCHECK(2); // strictly speaking at LEAST two
PARAMCHECK(1);
ty = UCRP_TRIGGER;
re = atoi(params[1]);
@ -2791,9 +2791,9 @@ static void readcondition(UINT8 set, UINT32 id, char *word2)
*spos = ' ';
spos = params[--i];
}
#endif
stringvar = Z_StrDup(params[2]);
#endif
}
else if ((offset=0) || fastcmp(params[0], "FALLOFF")
|| (++offset && fastcmp(params[0], "TOUCHOFFROAD"))

View file

@ -1374,7 +1374,7 @@ static const char *M_GetConditionString(condition_t *cn)
G_TicsToCentiseconds(cn->requirement));
case UCRP_TRIGGER:
return cn->stringvar;
return "do something special";
case UCRP_FALLOFF:
return (cn->requirement == 1) ? "fall off the course" : "without falling off";