diff Party.h @ 783:b27dd658ea77

Taveling by foot fixed.
author Nomad
date Sun, 24 Mar 2013 21:14:28 +0200
parents 64cef5a0782a
children cfc65feef029
line wrap: on
line diff
--- a/Party.h	Sun Mar 24 00:33:27 2013 +0200
+++ b/Party.h	Sun Mar 24 21:14:28 2013 +0200
@@ -97,6 +97,7 @@
 struct ActionQueue
 {
   void Add(PartyAction action);
+  void Reset();
   PartyAction Next();
 
   unsigned int uNumActions;
@@ -144,36 +145,10 @@
   Party():
     uTimePlayed(0)
   {
-    uCurrentYear = 0;
-    uCurrentMonth = 0;
-    uCurrentMonthWeek = 0;
-    uDaysPlayed = 0;
-    uCurrentHour = 0;
-    uCurrentMinute = 0;
-    uCurrentTimeSecond = 0;
-
-    field_6FC = 0;
-    days_played_without_rest = 0;
-
-    vPosition.y = 0;
-    vPosition.z = 0;
-    vPosition.x = 0;
-    uFallStartY = 0;
-    sRotationY = 0;
-    sRotationX = 0;
-    uFallSpeed = 0;
-    field_28 = 0;
-    uDefaultPartyHeight = 120;
-    field_14 = 37;
-    y_rotation_granularity = 25;
-    uWalkSpeed = 384;
-    y_rotation_speed = 90;
-    field_24 = 5;
-    field_6FC = 0;
-    field_708 = 15;
-    field_0 = 25;
+    Zero();
   }
 
+  void Zero();
   void UpdatePlayersAndHirelingsEmotions();
   void RestAndHeal();
   unsigned int GetPartyFame();