should have skipped this

This commit is contained in:
spherallic 2023-01-04 14:20:44 +01:00
parent 4b85392a18
commit b9d86faf3e

View file

@ -4022,19 +4022,18 @@ namespace CodeImp.DoomBuilder.Windows
{
// Go for all setors
bool updated = false;
long imgshorthash = General.Map.Data.GetShortLongFlatName(img.LongName); //mxd. Part of long name support shennanigans
foreach(Sector s in General.Map.Map.Sectors)
{
// Update floor buffer if needed
if(s.LongFloorTexture == img.LongName || s.LongFloorTexture == imgshorthash)
if(s.LongFloorTexture == img.LongName)
{
s.UpdateFloorSurface();
updated = true;
}
// Update ceiling buffer if needed
if(s.LongCeilTexture == img.LongName || s.LongCeilTexture == imgshorthash)
if(s.LongCeilTexture == img.LongName)
{
s.UpdateCeilingSurface();
updated = true;