mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
Fixed, Visual mode, DB2 bug: Visual Camera Thing's (32000) vertical position was always set to -41 when switching from Visual mode if the camera was not inside a sector.
This commit is contained in:
parent
19c84692ad
commit
958bc4de47
1 changed files with 3 additions and 4 deletions
|
@ -117,8 +117,7 @@ namespace CodeImp.DoomBuilder.VisualModes
|
|||
{
|
||||
modething.DetermineSector();
|
||||
float z = modething.Position.z;
|
||||
if(modething.Sector != null)
|
||||
z = modething.Position.z + modething.Sector.FloorHeight;
|
||||
if(modething.Sector != null) z += modething.Sector.FloorHeight;
|
||||
|
||||
// Position camera here
|
||||
Vector3D wantedposition = new Vector3D(modething.Position.x, modething.Position.y, z + THING_Z_OFFSET);
|
||||
|
@ -158,8 +157,8 @@ namespace CodeImp.DoomBuilder.VisualModes
|
|||
// Found one?
|
||||
if(modething != null)
|
||||
{
|
||||
int z = 0;
|
||||
if(sector != null) z = (int)position.z - sector.FloorHeight;
|
||||
int z = (int)position.z; //mxd
|
||||
if(sector != null) z -= sector.FloorHeight;
|
||||
|
||||
// Position the thing to match camera
|
||||
modething.Move((int)position.x, (int)position.y, z - THING_Z_OFFSET);
|
||||
|
|
Loading…
Reference in a new issue