- added gravity property to UDMF things. Positive values are multiplied with the class's gravity property, negative values are used as their absolute.
This commit is contained in:
parent
5d0369d4ed
commit
0a258f95ea
6 changed files with 16 additions and 0 deletions
|
|
@ -475,6 +475,7 @@ public:
|
|||
FString arg0str, arg1str;
|
||||
|
||||
memset(th, 0, sizeof(*th));
|
||||
th->gravity = FRACUNIT;
|
||||
sc.MustGetToken('{');
|
||||
while (!sc.CheckToken('}'))
|
||||
{
|
||||
|
|
@ -515,6 +516,11 @@ public:
|
|||
th->special = CheckInt(key);
|
||||
break;
|
||||
|
||||
case NAME_Gravity:
|
||||
CHECK_N(Zd | Zdt)
|
||||
th->gravity = CheckFixed(key);
|
||||
break;
|
||||
|
||||
case NAME_Arg0:
|
||||
case NAME_Arg1:
|
||||
case NAME_Arg2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue