Skip to content

Commit

Permalink
Fix clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 authored and DusteD committed Apr 7, 2020
1 parent 9479653 commit db436e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ bool controllerClass::get()
}

} else {
GLfloat x; //This is the actual traveling speed of the paddle
GLfloat x = 0.0; //This is the actual traveling speed of the paddle
if(joystickx > setting.JoyCalHighJitter)
{
x = joystickRightX * joystickx;
Expand Down
4 changes: 3 additions & 1 deletion menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,9 @@ vector<struct themeInfo> tI; //Vector of theme info
//Find out how many lines we have room for in the box.
int nl= (1.26/glText->getHeight(FONT_MENUHIGHSCORE));
//If theres room for more than 20, only show 20..
nl > 20 ? nl=20 : nl=nl;
if (nl > 20) {
nl = 20;
}

for(int i=0; i < nl; i++)
{
Expand Down

0 comments on commit db436e0

Please sign in to comment.