BGE: getting rid of a few maybe-uninitialized warnings.
This commit is contained in:
@@ -36,7 +36,6 @@
|
||||
#include "BLI_math_vector.h"
|
||||
|
||||
#include "KX_CameraActuator.h"
|
||||
#include <iostream>
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
#include "KX_GameObject.h"
|
||||
@@ -197,7 +196,7 @@ bool KX_CameraActuator::Update(double curtime, bool frame)
|
||||
MT_Point3 lookat = ((KX_GameObject*)m_ob)->NodeGetWorldPosition();
|
||||
MT_Matrix3x3 actormat = ((KX_GameObject*)m_ob)->NodeGetWorldOrientation();
|
||||
|
||||
float fp1[3], fp2[3], rc[3];
|
||||
float fp1[3]={0}, fp2[3]={0}, rc[3];
|
||||
float inp, fac; //, factor = 0.0; /* some factor... */
|
||||
float mindistsq, maxdistsq, distsq;
|
||||
float mat[3][3];
|
||||
|
@@ -310,7 +310,7 @@ void KX_KetsjiEngine::RenderDome()
|
||||
return;
|
||||
|
||||
KX_SceneList::iterator sceneit;
|
||||
KX_Scene* scene;
|
||||
KX_Scene* scene = NULL;
|
||||
|
||||
int n_renders=m_dome->GetNumberRenders();// usually 4 or 6
|
||||
for (int i=0;i<n_renders;i++) {
|
||||
|
@@ -119,7 +119,7 @@ void RAS_StorageVA::IndexPrimitives(RAS_MeshSlot& ms)
|
||||
void RAS_StorageVA::IndexPrimitivesMulti(class RAS_MeshSlot& ms)
|
||||
{
|
||||
static const GLsizei stride = sizeof(RAS_TexVert);
|
||||
bool wireframe = m_drawingmode <= RAS_IRasterizer::KX_WIREFRAME, use_color_array;
|
||||
bool wireframe = m_drawingmode <= RAS_IRasterizer::KX_WIREFRAME, use_color_array = true;
|
||||
RAS_MeshSlot::iterator it;
|
||||
GLenum drawmode;
|
||||
|
||||
|
Reference in New Issue
Block a user