|
|
@@ -324,34 +324,37 @@ unpack_attr(const Datagram &datagram) {
|
|
|
iterator.skip_bytes(4 + 4 + 149 * 4);
|
|
|
iterator.skip_bytes(8); // Undocumented padding.
|
|
|
_comment = iterator.get_fixed_string(512);
|
|
|
- iterator.skip_bytes(13 * 4);
|
|
|
- iterator.skip_bytes(4); // Undocumented padding.
|
|
|
- _file_version = iterator.get_be_int32();
|
|
|
-
|
|
|
- // Now read the geospecific control points.
|
|
|
- _geospecific_control_points.clear();
|
|
|
- int num_points = iterator.get_be_int32();
|
|
|
- if (num_points > 0) {
|
|
|
- iterator.skip_bytes(4);
|
|
|
-
|
|
|
- while (num_points > 0) {
|
|
|
- GeospecificControlPoint gcp;
|
|
|
- gcp._uv[0] = iterator.get_be_float64();
|
|
|
- gcp._uv[1] = iterator.get_be_float64();
|
|
|
- gcp._real_earth[0] = iterator.get_be_float64();
|
|
|
- gcp._real_earth[1] = iterator.get_be_float64();
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
if (iterator.get_remaining_size() != 0) {
|
|
|
- int num_defs = iterator.get_be_int32();
|
|
|
- while (num_defs > 0) {
|
|
|
- SubtextureDef def;
|
|
|
- def._name = iterator.get_fixed_string(32);
|
|
|
- def._left = iterator.get_be_int32();
|
|
|
- def._bottom = iterator.get_be_int32();
|
|
|
- def._right = iterator.get_be_int32();
|
|
|
- def._top = iterator.get_be_int32();
|
|
|
+ iterator.skip_bytes(13 * 4);
|
|
|
+ iterator.skip_bytes(4); // Undocumented padding.
|
|
|
+ _file_version = iterator.get_be_int32();
|
|
|
+
|
|
|
+ // Now read the geospecific control points.
|
|
|
+ _geospecific_control_points.clear();
|
|
|
+ int num_points = iterator.get_be_int32();
|
|
|
+ if (num_points > 0) {
|
|
|
+ iterator.skip_bytes(4);
|
|
|
+
|
|
|
+ while (num_points > 0) {
|
|
|
+ GeospecificControlPoint gcp;
|
|
|
+ gcp._uv[0] = iterator.get_be_float64();
|
|
|
+ gcp._uv[1] = iterator.get_be_float64();
|
|
|
+ gcp._real_earth[0] = iterator.get_be_float64();
|
|
|
+ gcp._real_earth[1] = iterator.get_be_float64();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (iterator.get_remaining_size() != 0) {
|
|
|
+ int num_defs = iterator.get_be_int32();
|
|
|
+ while (num_defs > 0) {
|
|
|
+ SubtextureDef def;
|
|
|
+ def._name = iterator.get_fixed_string(32);
|
|
|
+ def._left = iterator.get_be_int32();
|
|
|
+ def._bottom = iterator.get_be_int32();
|
|
|
+ def._right = iterator.get_be_int32();
|
|
|
+ def._top = iterator.get_be_int32();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|