mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
Fixed: INHERITACTORPITCH was actually changed along with USEACTORPITCH...doesn't really make sense compatibility-wise but there it is. (reported by alekv)
This commit is contained in:
parent
d9d8c352a0
commit
7603e5fa30
3 changed files with 13 additions and 11 deletions
|
@ -447,14 +447,15 @@ namespace CodeImp.DoomBuilder.Map
|
|||
|
||||
pitch = General.ClampAngle(newpitch);
|
||||
|
||||
switch(rendermode)
|
||||
switch (rendermode)
|
||||
{
|
||||
case ThingRenderMode.MODEL:
|
||||
ModelData md = General.Map.Data.ModeldefEntries[type];
|
||||
if(md.InheritActorPitch || md.UseActorPitch)
|
||||
pitchrad = Angle2D.DegToRad((md.InheritActorPitch||!General.Map.Config.BuggyModelDefPitch) ? -pitch : pitch);
|
||||
else
|
||||
pitchrad = 0;
|
||||
float pmult = General.Map.Config.BuggyModelDefPitch ? 1 : -1;
|
||||
ModelData md = General.Map.Data.ModeldefEntries[type];
|
||||
if (md.InheritActorPitch || md.UseActorPitch)
|
||||
pitchrad = Angle2D.DegToRad(pmult * (md.InheritActorPitch ? -pitch : pitch));
|
||||
else
|
||||
pitchrad = 0;
|
||||
break;
|
||||
|
||||
case ThingRenderMode.FLATSPRITE:
|
||||
|
@ -581,9 +582,10 @@ namespace CodeImp.DoomBuilder.Map
|
|||
switch(rendermode)
|
||||
{
|
||||
case ThingRenderMode.MODEL:
|
||||
ModelData md = General.Map.Data.ModeldefEntries[type];
|
||||
float pmult = General.Map.Config.BuggyModelDefPitch ? 1 : -1;
|
||||
ModelData md = General.Map.Data.ModeldefEntries[type];
|
||||
rollrad = (md.UseActorRoll ? Angle2D.DegToRad(roll) : 0);
|
||||
pitchrad = ((md.InheritActorPitch || md.UseActorPitch) ? Angle2D.DegToRad((md.InheritActorPitch || !General.Map.Config.BuggyModelDefPitch) ? -pitch : pitch) : 0);
|
||||
pitchrad = ((md.InheritActorPitch || md.UseActorPitch) ? Angle2D.DegToRad(pmult * (md.InheritActorPitch ? -pitch : pitch)) : 0);
|
||||
break;
|
||||
|
||||
case ThingRenderMode.FLATSPRITE:
|
||||
|
|
|
@ -30,6 +30,6 @@ using CodeImp.DoomBuilder;
|
|||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("2.3.0.2977")]
|
||||
[assembly: AssemblyVersion("2.3.0.2978")]
|
||||
[assembly: NeutralResourcesLanguageAttribute("en")]
|
||||
[assembly: AssemblyHash("0e43985")]
|
||||
[assembly: AssemblyHash("d9d8c35")]
|
||||
|
|
|
@ -29,5 +29,5 @@ using System.Resources;
|
|||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("2.3.0.2977")]
|
||||
[assembly: AssemblyVersion("2.3.0.2978")]
|
||||
[assembly: NeutralResourcesLanguageAttribute("en")]
|
||||
|
|
Loading…
Reference in a new issue