- 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:
Christoph Oelckers 2013-08-09 16:25:16 +02:00
commit 0a258f95ea
6 changed files with 16 additions and 0 deletions

View file

@ -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: