Changes between Version 4 and Version 5 of Rules/ValidatingBuildingsInHOTTMProjects


Ignore:
Timestamp:
2023-03-13T20:02:12+01:00 (3 years ago)
Author:
Patrik_B
Comment:

fixed flagging missing layer only buildings, added warning for bridges and tunnels

Legend:

Unmodified
Added
Removed
Modified
  • Rules/ValidatingBuildingsInHOTTMProjects

    v4 v5  
    44{
    55  title: "Validating buildings in HOT TM projects";
    6   version: "2.[[revision]]_[[date]]";
     6  version: "[[revision]]_[[date]]";
    77  description: "Few rules for checking mistakes on buildings that are usually made by beginners using ID Editor.";
    88  icon: "HOT_TM_logo.svg";
     
    1212
    1313/*
    14 * building with layer tag, except building=roof
     14* building with layer tag
    1515*/
    16 *[building!=roof][layer]{
     16*[building][building!=roof][layer]{
    1717throwWarning: tr("Building has layer tag");
    1818fixRemove: "layer";
     
    2929group: tr("_Fix");
    3030}
     31
     32/*
     33* bridge without layer tag
     34*/
     35*[bridge][!layer]{
     36throwWarning: tr("Bridge is missing layer tag");
     37fixAdd: "layer=1";
     38group: tr("_Fix");
     39}
     40
     41/*
     42* tunnel without layer tag. Added thanks to Filip009
     43*/
     44*[tunnel][!layer]{
     45throwWarning: tr("Tunnel is missing layer tag");
     46fixAdd: "layer=-1";
     47group: tr("_Fix");
     48}
    3149}}}