GithubHelp home page GithubHelp logo

Comments (5)

eevee avatar eevee commented on August 24, 2024

Hm, I've actually ended up with quite a lot of these, though most of them are harmless:

linedef//#56
{
v1=39;
v2=37;
sidefront=93;
sideback=96;
sidefront=93;
sideback=96;
twosided=true;
v1=39;
v2=37;
}

More problematic are the zero-length linedefs I can't seem to get rid of except by manually deleting them from the map file:

linedef//#54
{
v1=38;
v2=38;
sidefront=89;
v2=38;
sidefront=-1;
v1=38;
blocking=true;
}

Maybe a check for these? (The checks currently complain that the sector is maybe wrong, but using the "clear sector" button seems to wreck other nearby linedefs, and attempts to set the front sidedef to -1 are ignored. Or maybe not, since sidefront appears there twice?)

from slade.

eevee avatar eevee commented on August 24, 2024

In trying to minimally reproduce this, it actually seems to happen fairly consistently when setting a special on a two-sided linedef.

from slade.

eevee avatar eevee commented on August 24, 2024

Oh, well then. SLADEMap.cpp#2258 explicitly writes out the vertices, sides, and special... and then writes out all the linedef's properties as well.

So somehow all those things are also being set as regular properties as well, thus being printed out twice. Still not sure how, since MapLine intercepts any attempt to set them, and this only happens to some lines.

from slade.

eevee avatar eevee commented on August 24, 2024

Aha. It happens whenever any line is edited from the property dialog, at all, because MapLine::setIntProperty doesn't do any special handling for any the props it holds internally. It just doesn't ever matter until you try to change a vertex, and then the two copies get out of sync. Oops.

Patch incoming shortly.

from slade.

eevee avatar eevee commented on August 24, 2024

Pull: #112

from slade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.