]> git.jsancho.org Git - lugaru.git/commitdiff
Force XYZ to initialize to please Valgrind.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 12 Aug 2005 02:45:13 +0000 (02:45 +0000)
committerRyan C. Gordon <icculus@icculus.org>
Fri, 12 Aug 2005 02:45:13 +0000 (02:45 +0000)
Source/Globals.cpp
Source/Quaternions.h

index 05b4ff4391fd799139c713a772d36bea43835fe4..d44a3dff2348505fa97e978f72156fff75345e3c 100644 (file)
@@ -144,12 +144,12 @@ float dialogueboxcolor[max_dialogues][max_dialoguelength][3] = {0};
 int dialogueboxsound[max_dialogues][max_dialoguelength] = {0};
 char dialoguetext[max_dialogues][max_dialoguelength][128] = {0};
 char dialoguename[max_dialogues][max_dialoguelength][64] = {0};
-XYZ dialoguecamera[max_dialogues][max_dialoguelength] = {0};
-XYZ participantlocation[max_dialogues][10] = {0};
+XYZ dialoguecamera[max_dialogues][max_dialoguelength]; //l = {0};
+XYZ participantlocation[max_dialogues][10]; // = {0};
 int participantfocus[max_dialogues][max_dialoguelength] = {0};
 int participantaction[max_dialogues][max_dialoguelength] = {0};
 float participantrotation[max_dialogues][10] = {0};
-XYZ participantfacing[max_dialogues][max_dialoguelength][10] = {0};
+XYZ participantfacing[max_dialogues][max_dialoguelength][10]; // = {0};
 float dialoguecamerarotation[max_dialogues][max_dialoguelength] = {0};
 float dialoguecamerarotation2[max_dialogues][max_dialoguelength] = {0};
 int indialogue = 0;
@@ -196,7 +196,7 @@ float bonusnum[100] = {0};
 int hostile = 0;
 float hostiletime = 0;
 
-XYZ envsound[30] = {0};
+XYZ envsound[30]; // = {0};
 float envsoundvol[30] = {0};
 float envsoundlife[30] = {0};
 int numenvsounds;
index ba1eedb3426ead392ccb2661c88a05f2e91df08e..ec27e6e1a7456dd22affe67052b85ca4c8f19304 100644 (file)
@@ -37,6 +37,7 @@ public:
        float x;
        float y;
        float z;
+    XYZ() : x(0.0f), y(0.0f), z(0.0f) {}
        inline XYZ operator+(XYZ add);
        inline XYZ operator-(XYZ add);
        inline XYZ operator*(float add);