ref: 55f1d3a9fe1cfc4fef111fcef5cb8bde8acc8d5f
parent: bb065aa6973313e481b12f94ba9bda466508c24e
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Feb 19 22:55:05 EST 2019
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).
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -1,6 +1,5 @@
#include "Font.h"
-#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
--- a/src/Game.cpp
+++ b/src/Game.cpp
@@ -1,6 +1,7 @@
#include "Game.h"
#include <stdlib.h>
+#include <stdio.h>
#include <string.h>
#include <SDL_timer.h>
--- a/src/Input.cpp
+++ b/src/Input.cpp
@@ -2,6 +2,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <string.h>
#include <SDL.h>
--- a/src/NpChar.cpp
+++ b/src/NpChar.cpp
@@ -239,9 +239,10 @@
{
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 @@
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++)
{
--- a/src/Organya.cpp
+++ b/src/Organya.cpp
@@ -2,6 +2,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <string.h>
#include <SDL_rwops.h>
#include <SDL_thread.h>
--- a/src/Sound.cpp
+++ b/src/Sound.cpp
@@ -1,7 +1,7 @@
#include "Sound.h"
#include <algorithm>
-#include <math.h>
+#include <cmath>
#include <stdint.h>
#include <string>