From 03452fef87c017d89bb6585d6b002f8a4c0147b9 Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 20 Feb 2020 22:54:23 -0800 Subject: [PATCH] use u32 for rawmonsterdata fields --- src/ship/map.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ship/map.rs b/src/ship/map.rs index bdbb3fd..62d7215 100644 --- a/src/ship/map.rs +++ b/src/ship/map.rs @@ -25,11 +25,11 @@ struct RawMapEnemy { xrot: u32, yrot: u32, zrot: u32, - _field1: f32, - _field2: f32, - _field3: f32, - _field4: f32, - _field5: f32, + _field1: u32, + field2: u32, + _field3: u32, + _field4: u32, + _field5: u32, skin: u32, _field6: u32 } @@ -51,11 +51,11 @@ impl RawMapEnemy { xrot: cursor.read_u32::()?, yrot: cursor.read_u32::()?, zrot: cursor.read_u32::()?, - _field1: cursor.read_f32::()?, - _field2: cursor.read_f32::()?, - _field3: cursor.read_f32::()?, - _field4: cursor.read_f32::()?, - _field5: cursor.read_f32::()?, + _field1: cursor.read_u32::()?, + field2: cursor.read_u32::()?, + _field3: cursor.read_u32::()?, + _field4: cursor.read_u32::()?, + _field5: cursor.read_u32::()?, skin: cursor.read_u32::()?, _field6: cursor.read_u32::()?, })