diff SpriteObject.cpp @ 781:d170f23f70d1

tidy, code moving
author zipi
date Sun, 24 Mar 2013 01:27:34 +0000
parents 256211e8243a
children f5156b8c61ad
line wrap: on
line diff
--- a/SpriteObject.cpp	Sun Mar 24 00:42:55 2013 +0000
+++ b/SpriteObject.cpp	Sun Mar 24 01:27:34 2013 +0000
@@ -14,17 +14,31 @@
 #include "LOD.h"
 #include "Actor.h"
 #include "Events.h"
-
 #include "mm7_data.h"
 
-
-
-
 size_t uNumSpriteObjects;
 SpriteObject pSpriteObjects[1000];
 
-
-
+//----- (00404828) --------------------------------------------------------
+SpriteObject::SpriteObject()
+{
+  field_22_glow_radius_multiplier = 1;
+  uSoundID = 0;
+  uFacing = 0;
+  vVelocity.z = 0;
+  vVelocity.y = 0;
+  vVelocity.x = 0;
+  uType = 0;
+  uObjectDescID = 0;
+  field_61 = 0;
+  field_60_distance_related_prolly_lod = 0;
+  field_20 = 0;
+  uSpriteFrameID = 0;
+  field_50 = 0;
+  field_4C = 0;
+  field_48 = 0;
+  field_54 = 0;
+}
 
 //----- (0042F5ED) --------------------------------------------------------
 int SpriteObject::Create(int yaw, int pitch, int a4, int a5)
@@ -165,8 +179,6 @@
   return v6;
 }
 
-
-
 //----- (00471C03) --------------------------------------------------------
 void SpriteObject::UpdateObject_fn0_ODM(unsigned int uLayingItemID)
 {
@@ -589,8 +601,6 @@
   }
 }
 
-
-
 //----- (0047136C) --------------------------------------------------------
 void SpriteObject::UpdateObject_fn0_BLV(unsigned int uLayingItemID)
 {
@@ -975,9 +985,6 @@
 }
 // 46DF1A: using guessed type int __fastcall 46DF1A_collide_against_actor(int, int);
 
-
-
-
 //----- (00438E35) --------------------------------------------------------
 void SpriteObject::_438E35()
 {
@@ -1070,8 +1077,6 @@
   }
 }
 
-
-
 //----- (0042F933) --------------------------------------------------------
 void SpriteObject::OnInteraction(unsigned int uLayingItemID)
 {