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

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

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

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