Fixed a codacy issue

This commit is contained in:
Linus Probert 2017-12-01 00:01:51 +01:00
parent a7d5aa90e1
commit 1714c5d732
3 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/build/
/tags
*.swp

View File

@ -1,3 +1,5 @@
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/fc02d56fa7194e61b2c7d260fd2e4186)](https://www.codacy.com/app/LiquidityC/breakhack?utm_source=github.com&utm_medium=referral&utm_content=LiquidityC/breakhack&utm_campaign=Badge_Grade)
Something in the ways of NETHACK
================================

View File

@ -94,11 +94,10 @@ void run()
{
SDL_Event event;
bool quit = false;
int ticks;
while (!quit)
{
ticks = SDL_GetTicks();
int ticks = SDL_GetTicks();
while (SDL_PollEvent(&event) != 0) {
if (event.type == SDL_QUIT)