diff --git a/src/db.h b/src/db.h index 1b84b54..2fe22a5 100644 --- a/src/db.h +++ b/src/db.h @@ -16,4 +16,5 @@ db_execute_stmnt(const char *stmnt, void db_close(sqlite3 **db); -#endif // DB_H_ \ No newline at end of file +#endif // DB_H_ + diff --git a/src/io_util.c b/src/io_util.c index 0745db8..18e6edb 100644 --- a/src/io_util.c +++ b/src/io_util.c @@ -34,4 +34,5 @@ io_load_file_buffer(char **dest, unsigned long *len, const char *filepath) *len = (unsigned long) size; *dest = buffer; -} \ No newline at end of file +} + diff --git a/src/io_util.h b/src/io_util.h index 53af17c..34f0c41 100644 --- a/src/io_util.h +++ b/src/io_util.h @@ -27,4 +27,5 @@ io_load_rwops(const char *path); void io_load_file_buffer(char **dest, unsigned long *len, const char *filepath); -#endif // IO_UTIL_H_ \ No newline at end of file +#endif // IO_UTIL_H_ + diff --git a/src/map_lua.c b/src/map_lua.c index 591885b..48811c8 100644 --- a/src/map_lua.c +++ b/src/map_lua.c @@ -53,6 +53,7 @@ int l_create_map(lua_State *L) static int l_print_info(lua_State *L) { + UNUSED(L); // Compilers keep warning about L being unused debug(luaL_checkstring(L, 1)); return 0; } diff --git a/src/random.c b/src/random.c index 5b4e54d..5a098c9 100644 --- a/src/random.c +++ b/src/random.c @@ -31,4 +31,5 @@ get_random(unsigned int max) } return rand() % (max + 1); -} \ No newline at end of file +} + diff --git a/src/sprite.c b/src/sprite.c index 581865c..41385d1 100644 --- a/src/sprite.c +++ b/src/sprite.c @@ -122,7 +122,7 @@ sprite_render(Sprite *s, Camera *cam) cameraPos.x, cameraPos.y, s->dim.width, s->dim.height }; - if ((s->clip.w && s->clip.h) || s->angle || s->flip != SDL_FLIP_NONE) { + if ((s->clip.w && s->clip.h) || s->angle != 0 || s->flip != SDL_FLIP_NONE) { texture_render_clip_ex(s->textures[s->texture_index], &box, &s->clip, diff --git a/src/texturecache.h b/src/texturecache.h index d1dfcf3..2ea1389 100644 --- a/src/texturecache.h +++ b/src/texturecache.h @@ -34,4 +34,5 @@ texturecache_get(const char *path); void texturecache_close(void); -#endif // TEXTURECACHE_H_ \ No newline at end of file +#endif // TEXTURECACHE_H_ +