Fixed some problems found while compiling most of this with VC++2003

I could compile most of this, but not link it (SDL2's .lib files must
be too new).
This commit is contained in:
Clownacy 2019-02-20 03:55:05 +00:00
parent bb065aa697
commit 55f1d3a9fe
6 changed files with 7 additions and 4 deletions

View file

@ -1,6 +1,5 @@
#include "Font.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>

View file

@ -1,6 +1,7 @@
#include "Game.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <SDL_timer.h>

View file

@ -2,6 +2,7 @@
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <SDL.h>

View file

@ -239,9 +239,10 @@ bool SetBulletObject(int x, int y, int val)
{
int tamakazu_ari[10];
int n;
int t = 0;
memset(tamakazu_ari, 0, sizeof(tamakazu_ari));
for (int n = 0; n < 8; n++)
for (n = 0; n < 8; n++)
{
int code = gArmsData[n].code;
if (code == 5)
@ -255,7 +256,7 @@ bool SetBulletObject(int x, int y, int val)
if (!t)
return false;
int n = Random(1, 10 * t);
n = Random(1, 10 * t);
int bullet_no = tamakazu_ari[n % t];
for (n = 0x100; n < NPC_MAX; n++)
{

View file

@ -2,6 +2,7 @@
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <SDL_rwops.h>
#include <SDL_thread.h>

View file

@ -1,7 +1,7 @@
#include "Sound.h"
#include <algorithm>
#include <math.h>
#include <cmath>
#include <stdint.h>
#include <string>