Fix warnings

This commit is contained in:
2023-10-02 04:39:32 +02:00
parent 584b0cffc5
commit 9e8f123abb
24 changed files with 778 additions and 767 deletions

View File

@@ -1,11 +1,10 @@
// Copyright (C) 2012 Valeriano Alfonso Rodriguez (Kableado)
// Copyright (C) 2012-2023 Valeriano Alfonso Rodriguez (Kableado)
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "GameLib.h"
extern int gamelib_debug;
#include "GameEnts.h"

View File

@@ -1,7 +1,7 @@
// Copyright (C) 2012 Valeriano Alfonso Rodriguez (Kableado)
// Copyright (C) 2012-2023 Valeriano Alfonso Rodriguez (Kableado)
#ifndef _GAMEENTS_H_
#define _GAMEENTS_H_
#ifndef GameEnts_H
#define GameEnts_H
#define Ent_Player 1
#define Ent_Platform 2

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2012 Valeriano Alfonso Rodriguez (Kableado)
// Copyright (C) 2012-2023 Valeriano Alfonso Rodriguez (Kableado)
#include <math.h>
#include <stdio.h>

View File

@@ -1,6 +1,6 @@
// Copyright (C) 2012 Valeriano Alfonso Rodriguez (Kableado)
#ifndef _GAMEMAP_H_
#define _GAMEMAP_H_
// Copyright (C) 2012-2023 Valeriano Alfonso Rodriguez (Kableado)
#ifndef GameMap_H
#define GameMap_H
int GameMap_LoadLevel(char *filename, int res);

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2012 Valeriano Alfonso Rodriguez (Kableado)
// Copyright (C) 2012-2023 Valeriano Alfonso Rodriguez (Kableado)
#include <math.h>
#include <stdio.h>
@@ -7,7 +7,6 @@
#include <unistd.h>
#include "GameLib.h"
extern int gamelib_debug;
#include "GameEnts.h"
#include "GameMap.h"
@@ -32,13 +31,6 @@ void DrawGame(float f) { MainGame_Text(8, 8, "Hello world!"); }
int main(int argc, char *argv[]) {
if (argc > 1) {
if (!strcmp(argv[1], "debug")) {
gamelib_debug = 1;
printf("Debug Mode Activated!\n");
}
}
GameLib_Init(640, 480, "Game", 20, 60);
/////////////////////////////