[nostalgia] Address CLion recommendations

This commit is contained in:
2021-02-26 08:55:40 -06:00
parent d50551cc74
commit 44f4d67c80
14 changed files with 53 additions and 78 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ void setEventHandler(event_handler h) {
}
uint64_t ticksMs() {
return SDL_GetTicks();;
return SDL_GetTicks();
}
bool buttonDown(Key) {
+2 -2
View File
@@ -7,7 +7,6 @@
*/
#include <array>
#include <vector>
#ifdef NOST_FPS_PRINT
#include <iostream>
#endif
@@ -196,7 +195,7 @@ void draw(Context *ctx) {
void puts(Context *ctx, int column, int row, const char *str) {
for (int i = 0; str[i]; i++) {
setTile(ctx, 0, column + i, row, static_cast<uint8_t>(charMap[static_cast<int>(str[i])]));
setTile(ctx, 0, column + i, row, static_cast<uint8_t>(charMap[static_cast<uint8_t>(str[i])]));
}
}
@@ -208,6 +207,7 @@ void setTile(Context *ctx, int layer, int column, int row, uint8_t tile) {
id->bgTileMaps[z][y][x] = tile;
}
[[maybe_unused]]
void hideSprite(Context*, unsigned) {
}