Skip to content

Commit

Permalink
Add field "Height" to WED > Polygon structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Argent77 committed Jun 8, 2024
1 parent ab09a02 commit 55d472b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/infinity/resource/wed/Polygon.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import org.infinity.datatype.Flag;
import org.infinity.datatype.IsNumeric;
import org.infinity.datatype.SectionCount;
import org.infinity.datatype.Unknown;
import org.infinity.resource.AbstractStruct;
import org.infinity.resource.AddRemovable;
import org.infinity.resource.HasChildStructs;
Expand All @@ -22,6 +21,7 @@ public abstract class Polygon extends AbstractStruct implements AddRemovable, Ha
public static final String WED_POLY_VERTEX_INDEX = "Vertex index";
public static final String WED_POLY_NUM_VERTICES = "# vertices";
public static final String WED_POLY_FLAGS = "Polygon flags";
public static final String WED_POLY_HEIGHT = "Height";
public static final String WED_POLY_MIN_COORD_X = "Minimum coordinate: X";
public static final String WED_POLY_MAX_COORD_X = "Maximum coordinate: X";
public static final String WED_POLY_MIN_COORD_Y = "Minimum coordinate: Y";
Expand Down Expand Up @@ -92,7 +92,7 @@ public int read(ByteBuffer buffer, int offset) throws Exception {
addField(new DecNumber(buffer, offset, 4, WED_POLY_VERTEX_INDEX));
addField(new SectionCount(buffer, offset + 4, 4, WED_POLY_NUM_VERTICES, Vertex.class));
addField(new Flag(buffer, offset + 8, 1, WED_POLY_FLAGS, FLAGS_ARRAY));
addField(new Unknown(buffer, offset + 9, 1));
addField(new DecNumber(buffer, offset + 9, 1, WED_POLY_HEIGHT));
addField(new DecNumber(buffer, offset + 10, 2, WED_POLY_MIN_COORD_X));
addField(new DecNumber(buffer, offset + 12, 2, WED_POLY_MAX_COORD_X));
addField(new DecNumber(buffer, offset + 14, 2, WED_POLY_MIN_COORD_Y));
Expand Down

0 comments on commit 55d472b

Please sign in to comment.