Fix warnings in input.c, map.c (const char, sqrt)
This commit is contained in:
parent
8f9e555a73
commit
965372c7bf
@ -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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user