- reworked spot lights to receive all relevant information through the args.

As a bonus, arg0str can now be used for all dynamic lights to pass a color in textual form, including X11R6RGB-names.
This commit is contained in:
Christoph Oelckers 2018-01-20 22:41:28 +01:00
commit 6aaf5df617
4 changed files with 20 additions and 14 deletions

View file

@ -604,6 +604,7 @@ public:
case NAME_Arg0Str:
CHECK_N(Zd);
arg0str = CheckString(key);
th->arg0str = arg0str;
break;
case NAME_Arg1Str:
@ -799,14 +800,6 @@ public:
th->Scale.X = th->Scale.Y = CheckFloat(key);
break;
case NAME_SpotInnerAngle:
th->SpotInnerAngle = CheckFloat(key);
break;
case NAME_SpotOuterAngle:
th->SpotOuterAngle = CheckFloat(key);
break;
case NAME_FriendlySeeBlocks:
CHECK_N(Zd | Zdt)
th->friendlyseeblocks = CheckInt(key);