mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 09:32:34 +00:00
Fixed a bug with thing heights in Visual Mode for things that have no sprite
This commit is contained in:
parent
3ca0b615aa
commit
fcde15398a
1 changed files with 3 additions and 2 deletions
|
@ -91,10 +91,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Must have a width and height!
|
||||
if((info.Radius < 0.1f) || (info.Height < 0.1f)) return false;
|
||||
|
||||
// Find the sector in which the thing resides
|
||||
Thing.DetermineSector(mode.BlockMap);
|
||||
|
||||
if(sprite != null)
|
||||
{
|
||||
// Find the sector in which the thing resides
|
||||
Thing.DetermineSector(mode.BlockMap);
|
||||
if(Thing.Sector != null)
|
||||
{
|
||||
// Use sector brightness for color shading
|
||||
|
|
Loading…
Reference in a new issue