Fix warnings
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
/////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user