- Enable arg0str for UDMF things and named scripts.
SVN r3390 (trunk)
This commit is contained in:
parent
7106c06811
commit
3fae0e3906
2 changed files with 20 additions and 0 deletions
|
|
@ -466,6 +466,8 @@ public:
|
|||
|
||||
void ParseThing(FMapThing *th)
|
||||
{
|
||||
FString arg0str;
|
||||
|
||||
memset(th, 0, sizeof(*th));
|
||||
sc.MustGetToken('{');
|
||||
while (!sc.CheckToken('}'))
|
||||
|
|
@ -516,6 +518,11 @@ public:
|
|||
th->args[int(key)-int(NAME_Arg0)] = CheckInt(key);
|
||||
break;
|
||||
|
||||
case NAME_Arg0Str:
|
||||
CHECK_N(Zd);
|
||||
arg0str = CheckString(key);
|
||||
break;
|
||||
|
||||
case NAME_Skill1:
|
||||
case NAME_Skill2:
|
||||
case NAME_Skill3:
|
||||
|
|
@ -616,6 +623,10 @@ public:
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (arg0str.IsNotEmpty() && P_IsACSSpecial(th->special))
|
||||
{
|
||||
th->args[0] = -FName(arg0str);
|
||||
}
|
||||
// Thing specials are only valid in namespaces with Hexen-type specials
|
||||
// and in ZDoomTranslated - which will use the translator on them.
|
||||
if (namespc == NAME_ZDoomTranslated)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue