Fix warnings in input.c, map.c (const char, sqrt)

This commit is contained in:
jonny-vb 2023-12-15 03:32:47 -08:00
parent 8f9e555a73
commit 965372c7bf
3 changed files with 4 additions and 2 deletions

View File

@ -39,7 +39,7 @@ void updateBlockSizePx();
// search and load map by name in storedMaps[] (map.c) // search and load map by name in storedMaps[] (map.c)
// stops program when map not found! // stops program when map not found!
void loadMapByName(char *name); void loadMapByName(const char *name);
//load map by passed definition //load map by passed definition

View File

@ -1,3 +1,5 @@
#include <math.h>
#include "input.h" #include "input.h"
#include "common.h" #include "common.h"
#include "SDL.h" #include "SDL.h"

View File

@ -130,7 +130,7 @@ void updateBlockSizePx(){
//=========================== //===========================
// search and load map by name in storedMaps[] (map.c) // search and load map by name in storedMaps[] (map.c)
// stops program when map not found! // stops program when map not found!
void loadMapByName(char *name) void loadMapByName(const char *name)
{ {
// loop through all stored maps // loop through all stored maps
for (int i = 0; i < storedMapsCount; i++) for (int i = 0; i < storedMapsCount; i++)