mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-22 11:51:42 +00:00
Internal: Fixed: builtin light alteration by actor flags logic in GetGZLightTypeByClass
This commit is contained in:
parent
61085027c2
commit
52e771fe1d
4 changed files with 11 additions and 11 deletions
|
@ -592,7 +592,7 @@ namespace CodeImp.DoomBuilder.Config
|
||||||
if(blocking > THING_BLOCKING_NONE) errorcheck = THING_ERROR_INSIDE_STUCK;
|
if(blocking > THING_BLOCKING_NONE) errorcheck = THING_ERROR_INSIDE_STUCK;
|
||||||
|
|
||||||
// [ZZ]
|
// [ZZ]
|
||||||
DynamicLightType = GZGeneral.GetGZLightTypeByClass(actor);
|
dynamiclighttype = GZGeneral.GetGZLightTypeByClass(actor);
|
||||||
}
|
}
|
||||||
|
|
||||||
//mxd. This tries to find all possible sprite rotations. Returns true when voxel substitute exists
|
//mxd. This tries to find all possible sprite rotations. Returns true when voxel substitute exists
|
||||||
|
|
|
@ -50,17 +50,17 @@ namespace CodeImp.DoomBuilder.GZBuilder
|
||||||
while (p != null)
|
while (p != null)
|
||||||
{
|
{
|
||||||
idx = Array.IndexOf(gzLightClasses, p.ClassName.ToLowerInvariant());
|
idx = Array.IndexOf(gzLightClasses, p.ClassName.ToLowerInvariant());
|
||||||
|
|
||||||
if (idx != -1)
|
if (idx != -1)
|
||||||
{
|
{
|
||||||
// found dynamic light type. alter it by actor flags.
|
// found dynamic light type. alter it by actor flags.
|
||||||
// +MISSILEMORE makes it additive.
|
// +MISSILEMORE makes it additive.
|
||||||
// +MISSILEEVENMORE makes it subtractive.
|
// +MISSILEEVENMORE makes it subtractive.
|
||||||
// +INCOMBAT makes it attenuated.
|
// +INCOMBAT makes it attenuated.
|
||||||
|
int light = gzLights[idx];
|
||||||
if (idx < GZ_LIGHT_TYPES[3])
|
if (idx < GZ_LIGHT_TYPES[3])
|
||||||
{
|
{
|
||||||
int baseType = idx % 10;
|
int baseType = light % 10;
|
||||||
int dispType = idx - 9800 - baseType;
|
int dispType = light - baseType;
|
||||||
if (actor.GetFlagValue("MISSILEMORE", false))
|
if (actor.GetFlagValue("MISSILEMORE", false))
|
||||||
dispType = 9810;
|
dispType = 9810;
|
||||||
else if (actor.GetFlagValue("MISSILEEVENMORE", false))
|
else if (actor.GetFlagValue("MISSILEEVENMORE", false))
|
||||||
|
@ -69,7 +69,7 @@ namespace CodeImp.DoomBuilder.GZBuilder
|
||||||
dispType = 9830;
|
dispType = 9830;
|
||||||
return dispType + baseType;
|
return dispType + baseType;
|
||||||
}
|
}
|
||||||
else return gzLights[idx];
|
else return light;
|
||||||
}
|
}
|
||||||
|
|
||||||
p = p.BaseClass;
|
p = p.BaseClass;
|
||||||
|
|
|
@ -30,6 +30,6 @@ using CodeImp.DoomBuilder;
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
[assembly: AssemblyVersion("2.3.0.2923")]
|
[assembly: AssemblyVersion("2.3.0.2924")]
|
||||||
[assembly: NeutralResourcesLanguageAttribute("en")]
|
[assembly: NeutralResourcesLanguageAttribute("en")]
|
||||||
[assembly: AssemblyHash("748fe9e")]
|
[assembly: AssemblyHash("6108502")]
|
||||||
|
|
|
@ -29,5 +29,5 @@ using System.Resources;
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
[assembly: AssemblyVersion("2.3.0.2923")]
|
[assembly: AssemblyVersion("2.3.0.2924")]
|
||||||
[assembly: NeutralResourcesLanguageAttribute("en")]
|
[assembly: NeutralResourcesLanguageAttribute("en")]
|
||||||
|
|
Loading…
Reference in a new issue