diff SpriteObject.cpp @ 1306:13b7be8b06a0

Слияние
author Ritor1
date Sun, 23 Jun 2013 14:27:57 +0600
parents dcc52e17b517 5450af4f57ef
children 613c77e51e38
line wrap: on
line diff
--- a/SpriteObject.cpp	Sun Jun 23 14:27:32 2013 +0600
+++ b/SpriteObject.cpp	Sun Jun 23 14:27:57 2013 +0600
@@ -1088,7 +1088,21 @@
         }
     uNumSpriteObjects = new_obj_pos;
     }
+//----- (00408896) --------------------------------------------------------
+void InitializeSpriteObjects()
+{
+  for (uint i = 0; i < uNumSpriteObjects; ++i)
+  {
+    auto item = &pSpriteObjects[i];
 
+    if (item->uType &&
+        (item->uSoundID & 8 || pObjectList->pObjects[item->uType].uFlags & 0x10))
+      SpriteObject::OnInteraction(i);
+  }
+
+  for (uint i = 0; i < 100; ++i)
+    array_5118E8.pElements[i].field_C_time_left = 0;
+}
 //----- (0046BEF1) --------------------------------------------------------
 void SpriteObject::_46BEF1_apply_spells_aoe()
 {