Fixed rendering issue.
It's because I was using `unsigned int' instead of `int' in the for loop.
This commit is contained in:
parent
7a6ccb1399
commit
7771ffd6ab
@ -21,6 +21,7 @@
|
|||||||
#define FPS 60
|
#define FPS 60
|
||||||
|
|
||||||
#include "System.hpp"
|
#include "System.hpp"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
std::unique_ptr<Logger> System::logger;
|
std::unique_ptr<Logger> System::logger;
|
||||||
|
|
||||||
@ -180,9 +181,9 @@ void System::run() {
|
|||||||
asset_mngr.getModel("sphere")->draw(shaders.at("default"));
|
asset_mngr.getModel("sphere")->draw(shaders.at("default"));
|
||||||
}
|
}
|
||||||
|
|
||||||
for(unsigned int i = 0; i < 3; ++i)
|
for(int i = 0; i < 3; ++i)
|
||||||
{
|
{
|
||||||
for(unsigned int j = 0; j < 3; ++j)
|
for(int j = 0; j < 3; ++j)
|
||||||
{
|
{
|
||||||
if(board[i][j] not_eq 0)
|
if(board[i][j] not_eq 0)
|
||||||
{
|
{
|
||||||
@ -254,6 +255,7 @@ void System::handleKey(SDL_Keysym key){
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void System::syncInputs() {
|
void System::syncInputs() {
|
||||||
SDL_Event e;
|
SDL_Event e;
|
||||||
while(SDL_PollEvent(&e))
|
while(SDL_PollEvent(&e))
|
||||||
|
Loading…
Reference in New Issue
Block a user