Skip to content

Commit

Permalink
UPBGE: Fix random warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
youle31 committed May 27, 2019
1 parent 23ef1fe commit 653f61e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/gameengine/Ketsji/KX_MouseActuator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ KX_MouseActuator::KX_MouseActuator(SCA_IObject* gameobj, KX_KetsjiEngine* ketsji
m_type(acttype),
m_visible(visible),
m_threshold(threshold),
m_sensitivity(sensitivity),
m_initialSkipping(true),
m_sensitivity(sensitivity),
m_oldPosition(mt::zero2),
m_angle(mt::zero2)
{
Expand Down
4 changes: 3 additions & 1 deletion source/gameengine/Ketsji/KX_MouseActuator.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ class KX_MouseActuator : public SCA_IActuator
SCA_IInputDevice* m_mouse;
RAS_ICanvas* m_canvas;
int m_type;
bool m_initialSkipping;

bool m_visible;

bool m_use_axis[2]; /* 0 for calculate axis, 1 for ignore axis */
mt::vec2 m_threshold;

bool m_initialSkipping;

bool m_reset[2]; /* 0=reset, 1=free */
int m_object_axis[2]; /* 0=x, 1=y, 2=z */
bool m_local[2]; /* 0=local, 1=global*/
Expand Down
4 changes: 2 additions & 2 deletions source/gameengine/Rasterizer/RAS_Rasterizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ class RAS_Rasterizer : public mt::SimdClassAllocator

/// States to reduce OpenGL calls.
struct {
char frontFace;
char cullFace;
bool frontFace;
bool cullFace;
float polyOffset[2];
} m_state;

Expand Down

0 comments on commit 653f61e

Please sign in to comment.